Create transaction
POST/v1/transactions
Create transaction
This endpoint allows users to initiate transactions on the Ethereum blockchain. It supports various transaction types including ending Ether, ERC20 tokens, ERC721 NFTs, and ERC1155 tokens. Users must specify details such as the recipient address, amount, gas price, and other relevant parameters. The endpoint validates permissions, checks account existence, and ensures the user has access to the account they're transacting from. Upon successful validation, the transaction is recorded in the database and, if signed, sent to the blockchain. Responses include transaction ID upon success, or error codes indicating issues like invalid accounts, insufficient permissions, or internal server errors.
Request
- application/json
Body
required
Possible values: [Send
, SendERC20
, SendERC721
, SendERC1155
]
Responses
- 200
- 400
- 403
- 500
Transaction created
- application/json
- Schema
- Example (from schema)
Schema
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}
Account or transaction type not found
- text/plain
- Schema
Schema
string
Don't have permission or access to account
- text/plain
- Schema
Schema
string
Internal server error
- text/plain
- Schema
Schema
string