avax.exportAVAX {disallowed} - Avalanche
Example code for the avax.exportAVAX {disallowed} json-rpc method. Сomplete guide on how to use avax.exportAVAX {disallowed} json-rpc in GetBlock.io Web3 documentation.
Parameters
to
- string
the X-Chain address the asset is sent to.
amount
- int
amount of the asset to send.
baseFee
- int
base fee that should be used when creating the transaction. If ommitted, a suggested fee will be used.
username
- string
user that controls the address that transaction will be sent from.
password
- string
user's password
Request
curl --location --request POST 'https://go.getblock.io/<ACCESS-TOKEN>/ext/bc/C/rpc' \
--header 'Content-Type: application/json' \
--data-raw '{
"jsonrpc": "2.0",
"method": "avax.exportAVAX",
"params": [null, null, null, null, null],
"id": "getblock.io"
}'
Response
{
"result": "null",
"id": "getblock.io",
"status_code": 405,
"message": "Method not allowed"
}
Last updated