Skip to main content

v1/transactions REST API Endpoint

Submit a new signed transaction payload to the network with the necessary transaction fields.

Updated on
Oct 04, 2023

Parameters

script
string
REQUIRED

The Base64 encoded content of the Cadence script

arguments
string
REQUIRED

A list of arguments each encoded as Base64 passed in the JSON-Cadence interchange format

reference_block_id
string
REQUIRED

The reference block ID for the transaction

gas_limit
string
REQUIRED

The limit on the amount of computation a transaction is allowed to perform

payer
string
REQUIRED

The 8-byte address of an account

proposal_key
object
REQUIRED

It contains information about the account that proposed the transaction. It contains the following fields:

address
string
REQUIRED

The address of the account that proposed the transaction

key_index
string
REQUIRED

The index of the key used by the account to sign the transaction proposal

sequence_number
string
REQUIRED

The current sequence number of the account that proposed the transaction

authorizers
string
REQUIRED

An array of addresses for the accounts that have authorized the transaction

payload_signatures
array
REQUIRED

It contains an array of signatures for the transaction payload. Each signature is associated with a specific key, identified by the following fields:

address
string
REQUIRED

The address of the account that owns the key used to sign the payload

key_index
string
REQUIRED

The index of the key used to sign the payload

signature
string
REQUIRED

The digital signature generated by the key for the payload

envelope_signatures
array
REQUIRED

An array of signatures for the transaction envelope. Each signature is associated with a specific key, identified by the following fields:

address
string
REQUIRED

The address of the account that owns the key used to sign the envelope

key_index
string
REQUIRED

The index of the key used to sign the envelope

signature
string
REQUIRED

The digital signature generated by the key for the envelope

Returns

id
string

The id of the transaction

script
string

The Base64 encoded content of the Cadence script

arguments
array

A list of arguments each encoded as Base64 passed in the JSON-Cadence interchange format

reference_block_id
string

The reference block ID for the transaction

gas_limit
string

The limit on the amount of computation a transaction is allowed to perform

payer
string

The 8-byte address of an account

proposal_key
object

It contains information about the account that proposed the transaction. It contains the following fields:

address
string

The address of the account that proposed the transaction

key_index
string

The index of the key used by the account to sign the transaction proposal

sequence_number
string

The current sequence number of the account that proposed the transaction

authorizers
array

An array of addresses for the accounts that have authorized the transaction

payload_signatures
array

It contains an array of signatures for the transaction payload. Each signature is associated with a specific key, identified by the following fields:

address
string

The address of the account that owns the key used to sign the payload

key_index
string

The index of the key used to sign the payload

signature
string

The digital signature generated by the key for the payload

envelope_signatures
array

An array of signatures for the transaction envelope. Each signature is associated with a specific key, identified by the following fields:

address
string

The address of the account that owns the key used to sign the envelope

key_index
string

The index of the key used to sign the envelope

signature
string

The digital signature generated by the key for the envelope

result
object

The result object which contains the following fields:

block_id
string

The ID of the block that contains the transaction

execution
string

It indicates whether the transaction execution has been completed or is still pending

status
string

The overall status of the transaction execution

status_code
integer

The numeric code associated with the transaction execution status

error_message
string

The message indicating any errors that occurred during transaction execution

computation_used
string

The amount of computation used by the transaction

events
array

An array of events that were emitted during the execution of the transactions. It contains the following fields:

type
string

The type of the event, which is typically a string that identifies the purpose or function of the event

transaction_id
string

The unique id of the transaction that emitted the event

transaction_index
string

The index of the transaction that emitted the event

event_index
string

The index of the event within the transaction

payload
string

The data payload associated with the event, which can be used to provide additional information about the event

_links
object

An object that contains links to related resources or endpoints

_self
string

It is a link that refers to the current resource itself. In this case, it is the block resource requested

_expandable
object

The items inside the _expandable object can be expanded by passing as the query parameter in the request. For this method, the parameter result has been added to the request

_links
object

An object that contains links to related resources or endpoints

_self
string

It is a link that refers to the current resource itself. In this case, it is the block resource requested

Request
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free