Private
Readonly
_providerThe 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.
Protected
callExecutes a smart contract call operation
callSCParams.
A promise that resolves to an Operation object representing the transaction.
Protected
checkProtected
deployDeploys a smart contract on the blockchain.
Optional deployment details with defaults as follows:
The deployed smart contract.
If the account has insufficient balance to deploy the smart contract.
Protected
getReturns the gas estimation for a given function.
callSCParams.
The gas estimation for the function.
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.
Private
rollOptional
opts: OperationOptionsSells 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.