You can send RYSEN coins or other tokens.
Send RYSEN to another wallet.
$ curl -X POST --data 'from=[send wallet]&from_pwd=[send wallet password]&to=[receive wallet]&amount=[amount]&memo=[memo]' http://127.0.0.1:3045/api/transfer
{"status":"success","result":{"id":"a6b20bf1fcc70e84d57ed9aa2577e740c2c2200d","block_num":1436120,"trx_num":0,"expired":false}}
> {"jsonrpc": "2.0", "method": "transfer", "params": ["test011", "test001", "1.00000000 RSN", "memo", true], "id":1 }
< {
"id": 1,
"result": {
"ref_block_num": 60672,
"ref_block_prefix": 1520834542,
"expiration": "2021-11-18T04:56:24",
"operations": [
[
"transfer",
{
"from": "test011",
"to": "test001",
"amount": "1.00000000 RSN",
"memo": "memo"
}
]
],
"extensions": [
],
"signatures": [
"1f03e523e7437c5b6f6ef4a3d20de0d48b85fb078498a1dd2b691c1b893b210a243a85bc54f6b6020d3ba6e4fe7d0a941280f97946607fb6b0ad5d1e5cc4485045"
],
"transaction_id": "cd843eb629628648d5a4f86c594f0c836d785c88",
"block_num": 1436929,
"transaction_num": 0
}
}
unlocked >>> transfer test001 test011 "100.00000000 RSN" "memo" true
{
"ref_block_num": 60640,
"ref_block_prefix": 3569187372,
"expiration": "2021-11-18T04:54:48",
"operations": [[
"transfer",{
"from": "test001",
"to": "test011",
"amount": "100.00000000 RSN",
"memo": "memo"
}
]
],
"extensions": [],
"signatures": [
"20751bd76a067ab9ad538aad2d99fbcd268a43165fff089766eaedf7c6e9833a351847351b2df2a953eb58de14602a2b19600b69e8e42f544944d7e06c1e1ef131"
],
"transaction_id": "87657ade8100da620d4c443edf2476b26914f0b2",
"block_num": 1436897,
"transaction_num": 0
}
Send a token.
curl -X POST --data 'from=test1&wif=123456&to=test001&amount=1&memo=test&symbol_name=FISH' http://127.0.0.1:3045/api/transfertoken
{"status":"success","result":{"id":"955ae741d7c0ff6f21a3af3c0a0abcd854e68d03","block_num":1437140,"trx_num":0,"expired":false}}
> {"jsonrpc": "2.0", "method": "transfer_token", "params": ["test011", "test001", "1.000000 FISH", "memo", true], "id":1 }
< {
"id": 1,
"result": {
"ref_block_num": 60806,
"ref_block_prefix": 3876010049,
"expiration": "2023-11-18T05:03:06",
"operations": [
[
"custom_json_dapp",
{
"required_owner_auths": [
],
"required_active_auths": [
"test011"
],
"required_posting_auths": [
],
"required_auths": [
],
"id": "token",
"json": "[\"transfer_token\",{\"from\":\"test011\",\"to\":\"test001\",\"amount\":\"1.000000 FISH\",\"memo\":\"memo\"}]"
}
]
],
"extensions": [
],
"signatures": [
"1f00ce84efd8669735299804a7dfa12c5bc22182829e7d4a184e609941ca57a23a4e8fba8bdda6096d4efe33e86ad812242fbf45a714254c037999da7f2b6cf333"
],
"transaction_id": "ac249a7a788c7ac28d3627794548af8d7ff88a1f",
"block_num": 1437063,
"transaction_num": 0
}
}
unlocked >>> transfer_token speedhwang test011 "10.000000 FISH" "memo" true
{
"ref_block_num": 60779,
"ref_block_prefix": 3853957777,
"expiration": "2023-11-18T05:01:45",
"operations": [[
"custom_json_dapp",{
"required_owner_auths": [],
"required_active_auths": [
"speedhwang"
],
"required_posting_auths": [],
"required_auths": [],
"id": "token",
"json": "[\"transfer_token\",{\"from\":\"speedhwang\",\"to\":\"test011\",\"amount\":\"10.000000 FISH\",\"memo\":\"memo\"}]"
}
]
],
"extensions": [],
"signatures": [
"1f4ad83a432d3af435334ce37d682885e292964d46b2f784ed17fcc2c558fa7f7502d93e1080af8e477813ea8ee282210e9ddbf8da5c7148b7614e57491527d854"
],
"transaction_id": "33d1eb08511539d1af3ce858729db6562d2f0a6f",
"block_num": 1437036,
"transaction_num": 0
}
For Token balance inquiry, refer to the Get Account item in Manage Wallet.
You can check the balance of all tokens you have.
$ curl -X POST --data 'accounts=["speedhwang"]' http://127.0.0.1:3045/api/getTokenBalance
{
"status": "success",
"result": [
{
"account": "speedhwang",
"token": "SUPERTOKEN",
"balance": "4.300000 SUTO",
"savings_balance": "0.000000 SUTO",
"last_updated": "2021-11-16T08:39:15"
},
{
"account": "speedhwang",
"token": "fish",
"balance": "999999877.000000 FISH",
"savings_balance": "0.000000 FISH",
"last_updated": "2021-11-18T05:04:42"
}
]
}
> {"jsonrpc": "2.0", "method": "get_token_balance", "params": ["speedhwang"], "id":1 }
< {
"id": 1,
"result": [
{
"account": "speedhwang",
"token": "SUPERTOKEN",
"balance": "4.300000 SUTO",
"savings_balance": "0.000000 SUTO",
"last_updated": "2021-11-16T08:39:15"
},
{
"account": "speedhwang",
"token": "fish",
"balance": "999999877.000000 FISH",
"savings_balance": "0.000000 FISH",
"last_updated": "2021-11-18T05:04:42"
}
]
}
unlocked >>> get_token_balance speedhwang
[{
"account": "speedhwang",
"token": "SUPERTOKEN",
"balance": "4.300000 SUTO",
"savings_balance": "0.000000 SUTO",
"last_updated": "2021-11-16T08:39:15"
},{
"account": "speedhwang",
"token": "fish",
"balance": "999999987.000000 FISH",
"savings_balance": "0.000000 FISH",
"last_updated": "2021-11-03T05:47:12"
}
]
Please enter a nickname.
Your post has been completed.