Skip to main content

Execute nano contract

POST 

/wallet/nano-contract/execute

Returns the hexadecimal of the propagated transaction

Request

Body

required

Data to execute nano contract

    spent_tx_id stringrequired

    Id in hex of the transaction being spent

    spent_tx_index indexrequired

    Index of the output of the transaction being spent

    oracle_data stringrequired

    Data in base64 provided by the oracle

    oracle_signature stringrequired

    Signature in base64 of the oracle data

    oracle_pubkey stringrequired

    Public key of the oracle in base64

    address stringrequired

    Winning address in base58

    value integerrequired

    Total value of the nano contract (without decimal places)

Responses

Success

Schema

    any

Loading...