How To Auto Payout by SDK
Last updated
Last updated
Assist customers in automatic fund withdrawal through the use of escrow contracts.
Backend development is done using Java programming language.
Register as a BlockATM merchant and prepare tokens.
When registering as a merchant, you will need some tokens (token address summary) as prepaid fees. You can obtain them from the following sources:
For the Goerli testnet, you can get test coins from the contract: 0x47F2E8f50E08f71bf8f773F7B926594c4FB92aD2.
Send a small amount of ETH to the above smart contract, and the contract will automatically send test coins to the sending address.
For Tron test coins, don't hesitate to get in touch with our customer service representative for assistance.
Pre URL: https://backstage-b2b-pre.ufcfan.org/
Production URL: https://backend.blockatm.net/
Activate Bulk Payout Contract
Follow the instructions to deploy a Bulk Payout smart contract in the Smart Contract Payment menu. After successfully deploying the contract, you will need to transfer a certain amount of tokens to the contract address to execute the Bulk Payout transactions.
Prepare A Wallet Address For The Trigger
You need to prepare an additional wallet address that is not associated with the financial administrators. This address will be used to trigger automatic payout through programming. Please ensure that this address has a sufficient amount of tokens for gas fees.
The private key of this address should not be disclosed to anyone. It is recommended to store it in an encrypted form or use a private key manager (such as AWS CloudHMS or KMS Server).
Submit the Trigger Address
Authorize and submit the previously prepared trigger address in the BlockATM merchant backend.
Bulk Payout Contract Address (required for SDK usage):
eth(mainnet)
0x3692e69f814d4e836c8aa4adec1406ed8fc651be
eth(goerli)
0x8E5dF55ac224DB7424Fa8536edA9356F44474936
tron(mainnet)
TDS38pArHxwhoFd9hncXLNtyJw3dCpXo99
tron(shasta)
TEPxhToBFhzBok6UN8TRvHxf7FQDFcEcwP
RPC Node When interacting with the blockchain in the SDK, it is recommended to use a third-party node.
ETH: infura: https://www.infura.io/ alchemy: https://www.alchemy.com/ TRON: https://www.trongrid.io/
To obtain additional information, please refer to our technical documentation: https://blockatm.readme.io/reference/overview-1