Skip to main content

Get the hex representation of a transaction without input data.

POST 

/wallet/p2sh/tx-proposal

Get the hex representation of a transaction without input data.

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 stringrequired

    Destination address of the output.

    value integerrequired

    The value parameter must be an integer with the value in cents, i.e., 123 means 1.23 HTR.

    token string

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

  • ]

  • inputs

    object[]

    Inputs to create the transaction.

  • Array [

  • txId string

    Id of the transaction being spent in this input.

    index integer

    Index of the output being spent in this input.

  • ]

  • change_address string

    Optional address to send the change amount.

    mark_inputs_as_used boolean

    If we should lock the utxos chosen as inputs so they are not chosen when creating another transaction.

Responses

Create a transaction and get the hex representation of it

Schema

    any

Loading...