The number of rolls to buy.
Optional
opts: OperationOptionsOptional operation details.
The ID of the operation.
If the amount of rolls is not a positive non-zero value.
Executes Binary Smart Contract Code Onchain
Executes a binary code (smart contract) directly on the blockchain without deploying or storing it. This function is particularly useful for one-off actions or tasks that require blockchain execution but do not need the persistence or state of a deployed smart contract.
If the execution involves storing data or spending coins, the sender's address (i.e., the user's address initiating the contract execution) will be used.
https://docs.massa.net/docs/learn/operation-format-execution#executesc-operation-payload for more details on the setup and usage of the datastore during execution.
Returns the gas estimation for a given function.
ReadSCParams. caller must be provided
The gas estimation for the operation execution.
To avoid running out of gas, the gas estimation is increased by 20%.
If the read operation returns an error.
Reads smart contract function.
readSCParams.
A promise that resolves to a ReadSCData.
Sells rolls.
The number of rolls to sell.
Optional
opts: OperationOptionsOptional operation details.
The ID of the operation.
If the amount of rolls is not a positive non-zero value.
Transfers tokens.
The address of the recipient.
The amount of tokens to transfer.
Optional
opts: OperationOptionsOptional operation details.
The ID of the operation.
If the amount of tokens is not a positive non-zero value.
Static
buildnetStatic
fromRPCUrlStatic
mainnet
Buys rolls.