Skip to main content

NanoContractPOST

values object[]required

List of bets

  • Array [
  • addressstringrequired

    Destination address of the bet in base58

    valueintegerrequired

    Value of the bet

  • ]
  • fallback_addressstringrequired

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

    oracle_pubkey_hashstringrequired

    Oracle public key in base64

    oracle_data_idstringrequired

    Id of the oracle of this nano contract

    total_valueintegerrequired

    Total value of the nano contract

    input_valueintegerrequired

    Amount this wallet should stake in the nano contract

    NanoContractPOST
    {
    "values": [
    {
    "address": "string",
    "value": 0
    }
    ],
    "fallback_address": "string",
    "oracle_pubkey_hash": "string",
    "oracle_data_id": "string",
    "total_value": 0,
    "input_value": 0
    }