Skip to main content
All CollectionsDevelop with Core
Core API Calls: avalanche_sendTransaction
Core API Calls: avalanche_sendTransaction

Developer documentation for JSON-RPC API calls to use with Core

Amanda avatar
Written by Amanda
Updated this week

This method processes an unsigned transaction, prompting the user for approval, and then sends the signed transaction to the network.

Params (6)

  1. transactionHex (required)

    1. string

    2. The unsigned transaction in hexadecimal format

  2. chainAlias (required)

    1. string

    2. The chain alias for which the transaction is meant

    3. Allowed values: X, P, C

  3. externalIndicies

    1. array[number]

    2. Array of external indices used in the transaction

  4. internalIndices

    1. array[number]

    2. Array of internal indices used in the transaction

  5. utxos

    1. array[string]

    2. Array of the UTXO IDs consumed by the transaction

  6. feeTolerance

    1. number

    2. Tolerance percentage range where the burned amount is considered valid. e.g.: with FeeTolerance = 20% -> (expectedFee <= burnedAmount <= expectedFee * 1.2)

Result (SendTransactionResult)

txHash: String

The hash of the successfully sent transaction. Required

Errors:

Code

Message

-32602

Missing mandatory param(s)

-32600

No active account found

-32602

Unable to parse transaction data. Unsupported tx type

-32600

The requested account and/or method has not been authorized by the user.

-32000

Transaction contains multiple addresses, but indices were not provided

-32000

Signing error, missing signatures.

-32000

Signing error, invalid result

4001

User rejected the request.


For any additional questions, please view our other knowledge base articles or contact a Product Support team member via the chat button. Examples are for illustrative purposes only.

Did this answer your question?