Create Cross-Chain Transfer From Quote
Create Cross-Chain Transfer from Quote
post/v0/customers/{customer_id}/cross-chain-transfer/quote/{quote_id}
Authorizations
Api-KeystringRequired
Path parameters
customer_idstring · uuidRequired
The unique identifier of the customer
quote_idstring · uuidRequired
The unique identifier of the quote to use for the transfer
Body
destination_addressstringRequiredExample:
The destination address where the tokens will be sent
0x742d35Cc6634C0532925a3b8D4C9db96c4b4d8bResponses
200
Successful creation of Cross-Chain Transfer from quote
application/json
idstring · uuidOptional
The unique identifier for the cross-chain transfer
statusstring · enumOptionalPossible values:
The current status of the cross-chain transfer
amountstring · decimalOptionalPattern:
The amount of the cross-chain transfer as a numeric string
^[0-9]+(\.[0-9]+)?$source_networkstring · enumOptionalPossible values:
The blockchain network for the source
source_tokenstring · enumOptionalPossible values:
The token for the source
source_addressstring · nullableOptional
The blockchain address from which the funds will be sent
destination_networkstring · enumOptionalPossible values:
The blockchain network for the destination
destination_tokenstring · enumOptionalPossible values:
The token for the destination
destination_addressstringOptional
The blockchain address where the funds will be sent
400
The quote can no longer be used to create a transfer. Possible reasons:
Quote has expired— the quote is past itsexpire_atwindowQuote has already been used for a transfer— the quote was already consumed
application/json
post/v0/customers/{customer_id}/cross-chain-transfer/quote/{quote_id}
POST /v0/customers/{customer_id}/cross-chain-transfer/quote/{quote_id} HTTP/1.1
Host: api.alignlabs.dev
Api-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 67
{
"destination_address": "0x742d35Cc6634C0532925a3b8D4C9db96c4b4d8b"
}{
"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
