Links

Transfer Photons

Learn how to transfer photons between accounts.

Transfer

You can use Smart Vault's built-in wallet feature to transfer photons from one account to another using the /wallet/transfer HTTP route:
curl --request POST 'http://127.0.0.1:9091/wallet/transfer' \
--header 'Content-Type: application/json' \
--data-raw '{
"from": "YOUR_NODE_1_ACC",
"password": "YOUR_NODE_1_ACC_PWD",
"to": "ACCOUNT_2",
"amount_wei": "1000000000000000000" // 1 PHT
}'

Check balance

To check how many photons an account has, query the /wallet/balance HTTP route:
curl --request GET 'http://127.0.0.1:9091/wallet/balance?account=[recipient]'
// 96 PHT
> { "balance": "96547877500000000000" }

OPTIONAL: Use explorer

For convenience, you also always use the blockchain explorer to review an account's balance or its transaction history: https://explorer.sirius.lightstreams.io/addr/0x4f5c01b30d70b09767b0a5206242321eaac1d54d