[NUM] Transfer NUM from Custodial Wallet

This API provides transfers NUM tokens from the Capture Custodial Wallet (also known as the Capture Vault) to any specified wallet. To use this API, you must have a Capture account and NUM tokens in the Asset Wallet. If you do not have a Capture Token, please follow the provided instructions to create one.

API Endpoint: https://eolrf4c33knzg2p.m.pipedream.net

Cost: Cost: 0.01 NUM + Gas (~0.004 NUM per transaction)

Method: POST

Description:
Transfer the NUM with an amount specified to the input wallet.

Authentication:
This API requires a valid token for Authorization. The token should be passed in the headers of the request using the following format: "Authorization: token YOUR_CAPTURE_TOKEN"

Header:
Authorization: token $YOUR_CAPTURE_TOKEN (required)
Content-Type: application/json

Request Body (required):
wallet (string): Receiver wallet address
amount (float): The amount to be transferred. This should be smaller than the balance of the wallet deducting gas fee.

Example 1 (direct file upload):
curl -X POST "https://eolrf4c33knzg2p.m.pipedream.net" \
     -H "Content-Type: application/json" \
     -H "Authorization: token YOUR_CAPTURE_TOKEN" \
     -d '{
            "wallet": "0xEabA2251249C1F62b13aC118Ac463E6873a52B71",
            "amount": 0.1
     }'

Response:
{
    "payeeAddress": string // Receiver address
    "amount": float // Amount transferred
    "orderID": string // ID of this order
}

200: NUM transferred successfully
400: Bad request
401: Unauthorized
403: Forbidden
500: Internal Server Error

In this example, you would replace YOUR_CAPTURE_TOKEN with your actual Capture token. It's important to note that the Capture Vault only supports the transfer of Mainnet NUM coins. Therefore, this API SHOULD NOT be used for the transfer of BEP20 or ERC20 NUM tokens.

More examples can be found below:

import requests

url = "https://eolrf4c33knzg2p.m.pipedream.net"
header = {
    "Content-Type": "application/json",
    "Authorization": "token YOUR_CAPTURE_TOKEN"
}

data = {
    "wallet": "0xEabA2251249C1F62b13aC118Ac463E6873a52B71",
    "amount": 0.1
}

response = requests.post(url, headers=header, json=data)

if response.status_code == 200:
    print(response.json())
else:
    print("Request failed with status code:", response.status_code)

Last updated