Handle Transfers

Handle Funds Withdrawal

100Pay provides provision for you to transfer funds from your wallet to cross-platform wallet. This guide will walk you through utilizing this feature to process fund transfers from your wallet.

To send funds from your wallet, you can use the POST method to send a request to the 100Pay API. The request can include the following parameters:

  • amount: The amount you want to withdraw from your wallet.
  • symbol: The currency you want to withdraw. This should be in the format BTC, USDT, TRX, etc.
  • to: The wallet address you want to transfer to.
  • appId: The application ID of the user initiating the transfer.
  • transactionPin: You can use this pin to authorize the transaction before it is processed.

Here is an example of how you can send a request to the 100Pay API to transfer funds from a cryptocurrency wallet:

const response = await fetch(
  "https://api.100pay.co/api/v1/user/transfer-asset",
  {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
      "auth-token": authToken,
    },
    body: JSON.stringify(body),
  }
);

The request above also makes use of the auth-token header, which is the authentication token you users are assigned when their authentication has been handled. THE auth-token is required for all requests to the 100Pay API. The request here is sent to the /api/v1/user/transfer-asset endpoint, and you can make use of the appID and transactionPin for furhter verification, on your backend.

Conclusion

This guide shows you how you can handle funds transfer utilizing the 100Pay API. You can use this feature to send funds from your wallet to cross-platform wallets. You may need to tweak the request parameters to suit your specific use case.