Create a blockchain withdrawal

[Available in Production environment] Send funds to your verified blockchain addresses with your StraitsX Business Account

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
📘

When the status of the blockchain withdrawal is updated, a callback will be sent to the URL you configured in your business dashboard. Learn more about how to configure your callback

Sample Callback Payload for Blockchain Withdrawal
{
  "data": {
    "attributes": {
      "amount": 2.0,
      "blockchain": "XSGD_MATIC",
      "created_at": "2024-06-11T04:48:39.912Z",
      "idempotency_id": "testing",
      "network": "Polygon",
      "network_fees": 0.02,
      "status": "completed",
      "token": "xsgd",
      "total_amount": 2.02,
      "transaction_hash": "0x658043f80b1684cce02a0f4c0ed5449589eef495492bae5a849e47e80c46dd4d",
      "transaction_source": "0x4fd0f684dcf7c6c862114db8cebfe8bf6bb175c3"
    },
    "id": "contract_7afa75105cad43579f9589ebe30b6784",
    "type": "stablecoin_withdraw_contract"
  }
}
ParameterDescriptionSample Value
amountAmount transferred2.0
blockchainBlockchain (combination of token & network)XSGD_MATIC
created_atDatetime of creation2024-06-11T04%3A48%3A39.912Z
idempotency_idUnique idempotency id provided when triggering the withdrawaltesting
networkNetwork of the blockchain withdrawalPolygon
network_feesNetwork fees incurred0.02
statusTransaction status: completed/pending/cancelledcompleted
tokenToken of the blockchain withdrawalxsgd
total_amountTotal amount of the transaction2.02
transaction_hashTransaction hash0x658043f80b1684cce02a0f4c0ed5449589eef495492bae5a849e47e80c46dd4d
transaction_sourceReceiving blockchain address0x4fd0f684dcf7c6c862114db8cebfe8bf6bb175c3
idContract ID of the transactioncontract_7afa75105cad43579f9589ebe30b6784
typeTransaction typestablecoin_withdraw_contract

Body Params
string
required

Address ID is retrieved from the response of Get a list of blockchain addresses API
Regex: /^(?!\s*$).+$/

float
required

Transaction amount (Must be a positive float up to 2 d.p.)
Regex: /^(?!0(\.0+)?$)([1-9]\d*(\.\d+)?|0\.\d*[1-9]\d*)$/

string
required

Unique reference number provided by you to prevent double transaction, this cannot be repeated.
Regex: /^\s*.{1,191}\s*$/

string
enum

Which source of funds the deduction will be made from. If no value is specified for this field, XSGD and XUSD withdrawals will, by default, be deducted from the XSGD and XUSD balances respectively.

Allowed:
Headers
string
required

You can retrieve this from your Dashboard Developer Tools.

Note: The X-XFERS-APP-API-KEY is a mandatory header for all authentication methods, including standard API key usage and HTTP Request Signing mode.

string

The Key ID, can be retrieved from your StraitsX Dashboard.

Note: This header attribute is required when HTTP Request Signing is enabled for your account.

string

Current Unix epoch time in seconds. Must be within ±300 seconds of server time.

Note: This header attribute is required when HTTP Request Signing is enabled for your account.

string

A unique UUID string per request, used for replay protection. Must not be reused within the timestamp window.
Regex: /\A[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\z/i

Note: This header attribute is required when HTTP Request Signing is enabled for your account.

string

Base64-encoded digital signature of the canonical request string.

Note: This header attribute is required when HTTP Request Signing is enabled for your account.

Responses

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json