HomeGuidesChangelogDiscussions
Log In
Guides

Chain Payouts

Take these steps to ensure your wallet pay outs are successful.

Wallet Payout on the chain

To send out USDC from your wallet, provide the crypto address id from which the transfer should be made, and then the blockchain address that will receive the funds.

Payout from your wallet using our API supports several chains so you would have to specify what chain you want to transfer on. See our supported chains here.

For a USDC transfer to a Solana (SOL) address, for example, your /crypto-integrators/payout/chain API call would look like below.

curl --request POST \
     --url https://api-sandbox.spendjuice.com/crypto-integrators/payout/chain \
     --header 'Accept: application/json' \
     --header 'Content-Type: application/json' \
     --data '
{
     "amount": "3.14",
     "currency": "USD",
     "destination_address": "yxh73773nd83e9dne38dbd34rfec",
     "destination_chain": "SOL",
     "source_address_id": "870wfhbu7gf8wh9edino839"
}
'

The response below indicates that the transaction has been initiated. We communicate subsequent events related to this transaction via webhooks.

{
    "data": {
        "amount": {
          "amount": "3.14",
          "currency": "USD"
        },
        "create_date": "2021-11-12T16:35:01.294Z",
        "destination": {
          "address": "TR8ZFozJ3PZR4eM8NDksNG7xse6CDhTFwo",
          "chain": "TRX",
          "type": "blockchain"
        },
        "id": "064f09f5-ccb4-4a1d-a8d8-4ad68d1a1b07",
        "source": {
          "id": "1e5f275e-d365-4605-9e77-9705a8ba0241",
          "type": "address"
        },
        "status": "pending",
        "transaction_hash": "8650be7c-5853-40a4-a05a-63fc6b25c0ed",
        "type": "debit"
      }
}

Webhooks let you get notified whenever the USDC has been successfully sent out of your wallet address with a transaction_status: complete tag on the incoming webhook payload.

👍

Confirm Pay out

You can monitor the status of your wallet pay out (even after receiving a notification from our webhook) by checking the transaction using out /crypto-integrators/transaction/{id} endpoint will return these details for you.