This endpoint return all the neccessary information to execute source transaction.
GET
https://api.layerswap.io/api/swaps/{id}/prepare_src_transaction
Prepare swap deposit for execution
Note that you should execute this transaction manually. You should compose it based on the response and send to your wallet for execution. (Ex. User's Metamask, wallet managed by Fireblocks)
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
id*
String
The Swap response data.id received in the create swap endpoint
from_address
String
Address from which the transaction is going to be executed
X-LS-APIKEY*
API Key retrieved from Partner Setup