Prepare Source Transaction
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
Path Parameters
Name
Type
Description
id*
String
The Swap response data.id received in the create swap endpoint
Query Parameters
Name
Type
Description
from_address
String
Address from which the transaction is going to be executed
Headers
Name
Type
Description
{
"data": {
"to_address": "0x5dA5C2a98e26FD28914b91212b1232D58eb9bbab",
"data": "0xba2",
"value": 0.009,
"base_units": "9000000000000000",
"chain_id": "5",
"network": "ETHEREUM_GOERLI"
},
"error": null
}Raw Request
Raw Response
Last updated
Was this helpful?