Skip to main content

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

Body

required
    data stringnullable
    from stringnullable
    fromAccountId uuidrequired
    gasLimit stringnullable
    gasPrice stringnullable
    maxFeePerGas stringnullable
    maxPriorityFeePerGas stringnullable
    networkId int32required
    nonce stringnullable
    signedTxRlp stringnullable
    to stringnullable
    toAccountId uuidnullable
    toContactId uuidnullable
    tokenAddress stringnullable
    tokenId stringnullable
    transactionType TransactionType (string)required

    Possible values: [Send, SendERC20, SendERC721, SendERC1155]

    type stringnullable
    value stringnullable

Responses

Transaction created

Schema
    id uuidrequired
Loading...