QTUM RPC CALLS

qrc20allowance "contractaddress" "addressfrom" "addressto"

qtum-cli qrc20allowance

qrc20allowance "contractaddress" "addressfrom" "addressto"

Returns remaining tokens allowed to spend for an address

Arguments:
1. contractaddress    (string, required) The contract address
2. addressfrom        (string, required) The qtum address of the account owning tokens
3. addressto          (string, required) The qtum address of the account able to transfer the tokens

Result:
"str"    (string) Amount of remaining tokens allowed to spent

Examples:
> qtum-cli qrc20allowance "eb23c0b3e6042821da281a2e2364feb22dd543e3" "QX1GkJdye9WoUnrE2v6ZQhQ72EUVDtGXQX" "QM72Sfpbz1BPpXFHz9m3CdqATR44Jvaydd"
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id": "curltest", "method": "qrc20allowance", "params": ["eb23c0b3e6042821da281a2e2364feb22dd543e3" "QX1GkJdye9WoUnrE2v6ZQhQ72EUVDtGXQX" "QM72Sfpbz1BPpXFHz9m3CdqATR44Jvaydd"]}' -H 'content-type: text/plain;' http://127.0.0.1:8332/

qrc20balanceof "contractaddress" "address"

qrc20decimals "contractaddress"

qrc20listtransactions

qrc20name "contractaddress"

qrc20symbol "contractaddress"

qrc20totalsupply "contractaddress"

qrc20approve "contractaddress" "owneraddress" "spenderaddress"

"amount" ( gaslimit gasprice checkoutputs )

qrc20burn "contractaddress" "owneraddress" "amount" ( gaslimit gasprice checkoutputs )

qrc20burnfrom "contractaddress" "owneraddress" "spenderaddress" "amount" ( gaslimit gasprice checkoutputs )

qrc20transfer "contractaddress" "owneraddress" "addressto" "amount" ( gaslimit gasprice checkoutputs )

Last updated