In an effort to continue sharing knowledge of how to implement the Resource Provider specification we have been working on, I took the example we created months ago using eosjs and adopted it to using our new EOSIO javascript/typescript library, @greymass/eosio:
The eosjs implementation can be found here:
And the original thread about the API implementation can be found here:
The code for the new greymass/eosio version is as shown below:
Please refer to the instructions on the eosjs example on the how/why this script works the way it does!