Skip to main content

create_transactions

Create new transaction/s, which will be submitted to the Mempool nodes for inclusion into a new block. This call assumes a full transaction as part of the request body, which might make raw calls difficult to manage. For convenience, it may be best to use an AIBlock library or SDK that abstracts this call for you.

Header Parameters
    x-cache-id string

    Possible values: Value must match regular expression ^[a-z0-9]{32}$

    An idempotent key for retrieving cached responses from the node

Request Body required

Create a new transaction

    inputs txinput[]

    The inputs to the transaction

  • Array [
  • previous_out object

    Previous output tx hash

    t_hash string

    Transaction hash

    n number

    The index of the output in the input transaction

    script_signature object
    Pay2PkH object
    signable_data string

    Data to sign for verification. This is a SHA3 hash of the all the transaction outputs and this input's previous output, for example "{output1}{output2}{previousOut}"

    signature string

    Signature of the signable data

    public_key string

    Public key used to sign the signable data

    address_version string
  • ]
  • outputs txinput[]

    The outputs to the transaction

  • Array [
  • value object
    Token number

    Token amount

    locktime number
    script_public_key string
  • ]
  • version int8

    The transaction's schema version

    druid_info object
    druid string
    participants integer
    expectations object
    from string
    to string
    asset object
Responses

Successful operation


Schema
    id string

    The ID of the call, which corresponds to the x-cache-id used in the header

    status string

    The status of the call, which will be one of either "Success", "Error", or "Pending"

    reason string

    The reason for the status of the call. Most useful to debug errors

    route string

    The endpoint route that was called

    content object
    transaction object

    This section is unfinished, refer to postman collection for more details

Loading...