[Create] Cross-Chain Transfer
Path parameters
customer_idstring · uuidRequired
The unique identifier of the customer
Header parameters
AuthorizationstringRequired
Token for authentication
Body
amountstring · decimalRequiredPattern:
The amount of the cross-chain transfer as a numeric string
^[0-9]+(\.[0-9]+)?$
source_networkstring · enumRequiredPossible values:
The blockchain network for the source
source_tokenstring · enumRequiredPossible values:
The token for the source
destination_networkstring · enumRequiredPossible values:
The blockchain network for the destination
destination_tokenstring · enumRequiredPossible values:
The token for the destination
destination_addressstringRequired
The blockchain address where the funds will be sent
Responses
200
Successful creation of Cross-Chain Transfer
application/json
post
POST /v0/customers/{customer_id}/cross-chain-transfer HTTP/1.1
Host: api.alignlabs.dev
Authorization: text
Content-Type: application/json
Accept: */*
Content-Length: 154
{
"amount": "text",
"source_network": "polygon",
"source_token": "usdc",
"destination_network": "polygon",
"destination_token": "usdc",
"destination_address": "text"
}
200
Successful creation of Cross-Chain Transfer
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"status": "pending",
"amount": "text",
"source_network": "polygon",
"source_token": "usdc",
"source_address": "text",
"destination_network": "polygon",
"destination_token": "usdc",
"destination_address": "text",
"quote": {
"deposit_token": "usdc",
"deposit_address": "text",
"deposit_network": "polygon",
"deposit_amount": "text",
"fee_amount": "text"
}
}
Last updated