Created
August 5, 2021 20:22
-
-
Save Mleekko/5c62c4469577291aa039bb3e26c835fe to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 1. Transferring tokens from a running node | |
#### | |
curl -s -u superadmin:$NGINX_SUPERADMIN_PASSWORD \ | |
-X POST -k 'https://localhost/account' \ | |
-H 'Content-Type: application/json' \ | |
--data-raw '{ | |
"jsonrpc": "2.0", | |
"method": "account.submit_transaction_single_step", | |
"params": { | |
"actions": [ | |
{ | |
"type": "TokenTransfer", | |
"from": "tdx1qspxulvdjl4744rnnppetk4msggzmnpuulhx7fxqqeufqf33aws9prgvrfm0r", | |
"to": "tdx1qsprl50r77hg759ccamph85n7fxfvdjwmvmywy867cgr4nermmtcw7qsxet03", | |
"amount": "2000000000000000000", | |
"rri": "xrd_tr1qyf0x76s" | |
} | |
] | |
}, | |
"id": 1 | |
}' | |
# XRD rri on Mainnet: | |
# xrd_rr1qy5wfsfh | |
################# | |
# 2. Creating a custom token | |
#### | |
curl -s -u superadmin:$NGINX_SUPERADMIN_PASSWORD \ | |
-X POST -k 'https://localhost/account' \ | |
-H 'Content-Type: application/json' \ | |
--data-raw '{ | |
"jsonrpc": "2.0", | |
"method": "account.submit_transaction_single_step", | |
"params": { | |
"actions": [ | |
{ | |
"type": "CreateFixedSupplyToken", | |
"to": "rdx1....", | |
"publicKeyOfSigner": "000000000000000000000000000000000000000000000000000000000000000000", | |
"symbol": "aaa", | |
"name": "Token name", | |
"description": "token description", | |
"iconUrl": "https://url.com/ico.png", | |
"tokenUrl": "https://www.radixdlt.com/", | |
"supply": "1000000000000000000000000" | |
} | |
] | |
}, | |
"id": 2 | |
}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment