Skip to main content

Send a transaction with many outputs.

POST 

/wallet/send-tx

Send a transaction with many outputs.

Request

Header Parameters

    x-wallet-id stringrequired

    Defines the key of the wallet on which the request will be executed.

Body

required

Data to create the transaction

    outputs

    object[]

    required

    Outputs to create the transaction.

  • Array [

  • address string

    Destination address of the output. Required if P2PKH or P2SH.

    value integer

    The value parameter must be an integer with the value in cents, i.e., 123 means 1.23 HTR. Required if P2PKH or P2SH.

    token string

    Token id of the output. If not sent, HTR will be chosen.

    type string

    Type of output script. Required if data script and expected to be "data".

    data string

    Data string of the data script output. Required if it's a data script output.

    timelock integer

    Timelock value for the output. Used only for P2PKH or P2SH.

  • ]

  • inputs

    object[]

    Inputs to create the transaction.

  • Array [

  • hash string

    Hash of the transaction being spent in this input. Used if not type query.

    index integer

    Index of the output being spent in this input. Used if not type query.

    type string

    Type of input object. Can be 'query' only for now.

    max_utxos integer

    Maximum number of utxos to filter in the query. Optional query parameter when using type query.

    token string

    Token uid to filter utxos in the query. Optional query parameter when using type query.

    filter_address string

    Address to filter utxos in the query. Optional query parameter when using type query.

    amount_smaller_than integer

    Filter only utxos with value smaller than this. Optional query parameter when using type query.

    amount_bigger_than integer

    Filter only utxos with value bigger than this. Optional query parameter when using type query.

  • ]

  • token

    object

    deprecated

    [DEPRECATED] Token to send the transaction, just in case is not HTR. This parameter is old and will be deprecated soon, you must preferably use the token parameter in the output object.

    uid stringrequired

    UID of the custom token to send the transaction.

    name stringrequired

    Name of the custom token to send the transaction.

    symbol stringrequired

    Symbol of the custom token to send the transaction.

    change_address string

    Optional address to send the change amount.

Responses

Send a transaction with many outputs

Schema

    any

Loading...