getDepositAddress
Get an address on the specified network for users to make deposits into.
NB!! You MUST be signed up on AkashicPay.com before creating wallets. Otherwise they will not be recognized even though you might get an address in return.
Given a network and a user-identifier, this function will create a wallet on the specified network via AkashicChain for the user to deposit into. To read more about the purpose of the identifier, see the next page.
Note: Deposit addresses are permanently assigned on AkashicPay. That means, any subsequent call to getDepositAddress
with the same parameters (Network and identifier) will return the same address. This means it is easy to keep track of the 1-to-1 mapping between identifier and address, and - if the identifier represent a user - impossible for the user to become confused about where to deposit into.
Example
Creates a Tron-wallet for user123
Return Example
Errors
AkashicError.KeyCreationFailure
- 'Failed to generate new wallet. Try again.'
AkashicChain had an issue and could not generate the requested wallet. Normally should resolve shortly
AkashicError.UnHealthyKey
- 'New wallet was not created safely, please re-create'
Wallet was created but it was not verified to be 100% healthy. E.g. one of the nodes may not have been able to write its part of the data correctly. Try again right away
Last updated