Deposit/Withdrawals

20202020

The numbers below correspond with the numbers in the display made to retrieve these items for your frontend

GET /v1/wallets/{walletId}/addresses

//Sample Response
{
  "data": [
    {
      "network": "Ropsten",
      "assetType": "Ether",
      "address": "0x71C7656EC7ab88b098defB751B7401B5f6d4173A"
    },
    . . .
  ]
}
POST /v1/wallets/{walletId}/withdraw-nft/estimate

//Sample Response
{
  "low": {
    "gasPrice": 1.5,
    "gasLimit": 21000,
    "networkFee": 0.000556500000189
  },
  "medium": {
    "gasPrice": 2,
    "gasLimit": 21000,
    "networkFee": 0.000566979000189
  },
  "high": {
    "gasPrice": 3,
    "gasLimit": 21000,
    "networkFee": 0.000587979000189
  }
POST /api/v1/wallets/{id}/withdraw-nft

//Sample Request
{
  "tokenId": "23985f64-5717-4562-b3fc-2c963f66a115",
  "destinationWalletId": "83645f64-5717-4562-b3fc-2c9643f99f7d",
  "destinationAddress": "0x34C7656EC7ab88b098defB751B7401B5f6d4158B",
  "amount": 2, // optional, if not provided, 1 nft is considered
}

Deposits

Deposits into the Fortress wallet are easy and only require a retrieval call for the particular wallet address (1). It's also a good idea to create a QR generator to facilitate easier access for your user base.

🚧

Use the correct address

Make sure to use the correct chain address to avoid any issues the end user might have with sending from their source.

Withdrawals

There are two components to think about when it comes to asset withdrawals, the gas cost(2) and the withdrawal information(3)

Gas:
Our API endpoint (2) will provide the estimated gas cost of the chain at the time of request. This will be useful in letting your end-user understand any fees associated with a withdrawal.

Withdrawal information:
Our withdrawal endpoint (3) functions for both intra organization wallet transfers as well as external wallet transfers. When specifying an external wallet, all that's needed is the destinationAddress address. When specifying another wallet within your organization, you can include both the destinationWalletId as well as the destinationAddress.

📘

Transaction status

You will have a transaction object generated for a withdrawal that will give you the status of the blockchain update. Keep your end users updated by writing into our webhooks so they know when their transaction is posting to their external address.


Did this page help you?