Setup transaction
GET/v1/transactions/setup
Setup transaction
The setup transaction endpoint allows users to initiate a transaction setup process on a specified Ethereum network. It requires parameters such as network_id, from_account_id, to_address, tx_type, value, token_id, token_address, gas_limit, and transaction_type. This endpoint validates the user's permissions, checks if the account exists, and prepares a transaction request based on the provided details. Upon successful validation and preparation, it returns a serialized transaction request object that includes transaction details like sender (from), recipient (to), nonce, gas price, gas limit, data payload, value, chain ID, and the number of approvers needed. Errors may occur due to invalid account access, missing permissions, or internal server issues.
Request
Query Parameters
Network id
From account id
To address
Transaction type
Value
Token id
Token address
Gas limit
Transaction type
Responses
- 200
- 403
- 404
- 500
Transaction setup
- application/json
- Schema
- Example (from schema)
Schema
{
"approversNeeded": 0,
"chainId": 0,
"data": "string",
"from": "string",
"gasLimit": "string",
"gasPrice": "string",
"nonce": [
0
],
"to": "string",
"value": "string"
}
Account not found or don't have access to it
- text/plain
- Schema
Schema
string
Transaction type not found
- text/plain
- Schema
Schema
string
Internal server error
- text/plain
- Schema
Schema
string