Processing Withdrawal Request
Account verification/validation
For a customer to make a withdrawal, a specific account must be specified. When this account id is received, verify that the account has a public key.
To verify that an account has a public key, use the getAccountPublicKey API call.
If the account does not have a public key, it means that it is a new account that has not yet been activated. If possible, display a message to the customer as follows:
«The account provided has not yet been activated. To activate your account, use your wallet’s account activation service, make an outgoing transaction from the account to activate it, or refer to your documentation for alternative methods»
Transaction Fees
Currently, all outgoing transactions require a minimum transaction fee of 1000000 Planck. You can use the suggestFee API call to receive the cheap, standard, and priority fee suggestions.
curl request GET
--url http://localhost:6876/api?requestType=suggestFee
--header 'Accept: application/json'Adding a Message to a Transaction
Allowing the customer to add a message/memo on your withdrawal page is recommended for coordinating with other services that use a message-based deposit system.
Funding Withdrawal Requests
To fund a withdrawal request, use the sendMoney API call with the following request parameters. This request must be sent using HTTP POST.
curl request POST
--url http://localhost:6876/api?requestType=sendMoney
--header 'Accept: application/json'
# Request parameters
# recipient – The recipients address
# amountNQT – The amount expressed in Planck
# feeNQT – The fee for this transaction expressed in Planck
# deadline – deadline for the transaction in minutes.
# secretPhrase – Your secret passphrase.🔓 Security Advice
It's not recommended to pass the secret phrase to remote nodes unless you trust the node operator.
We recommend you to access the Node HTTP API Documentation and get more information about this API call. You can access by clicking the following link: