How To Auto Payout by SDK

Scope

  • Assist customers in automatic fund withdrawal through the use of escrow contracts.

  • Backend development is done using Java programming language.

Preparation

  1. 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/

  2. Activate Bulk Payout Contract

    Follow the i​nstructions 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.

  3. 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).

  4. Submit the Trigger Address

    Authorize and submit the previously prepared trigger address in the BlockATM merchant backend.

  5. Bulk Payout Contract Address (required for SDK usage):

  1. 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/

Workflow

Integration

To obtain additional information, please refer to our technical documentation: https://blockatm.readme.io/reference/overview-1

Last updated