Skip to main content

Create a match value nano contract

POST 

/wallet/nano-contract/match-value

Returns the hexadecimal of the created nano contract

Request

Body

required

Data to create the nano contract

    values

    object[]

    required

    List of bets

  • Array [

  • address stringrequired

    Destination address of the bet in base58

    value integerrequired

    Value of the bet

  • ]

  • fallback_address stringrequired

    Address in base58 that will execute the contract in case none of the bets is the winner

    oracle_pubkey_hash stringrequired

    Oracle public key in base64

    oracle_data_id stringrequired

    Id of the oracle of this nano contract

    total_value integerrequired

    Total value of the nano contract

    input_value integerrequired

    Amount this wallet should stake in the nano contract

Responses

Success

Schema

    any

Loading...