Update a match value nano contract
PUT/wallet/nano-contract/match-value
Returns the hexadecimal of the updated nano contract
Request
- application/json
Body
required
Data to update the nano contract
Array [
]
hex_tx stringrequired
Nano contract transaction being updated in hexadecimal
new_values
object[]
required
New list of bets
address stringrequired
Destination address of the bet in base58
value integerrequired
Value of the bet
input_value integerrequired
New amount this wallet should stake in the nano contract
Responses
- 200
Success
- application/json
- Schema
- success
- error1
- error2
Schema
any
Success
{
"success": true,
"hex_tx": "00013ff00000000000005c3899fc0000000000000000000100010002005d9e609fb85c512ac590221aed8cc5e7b7f646a4511e61ec401eba7bda794bd30002bb171de3490828028ec5eef3325956acb6bcffa6a50466bb9a81d38363c25d9e609fb85c512ac590221aed8cc5e7b7f646a4511e61ec401eba7bda794bd300007b1007736f6d655f6964045bfc631902012c473045022067aa6e62d123a96b817332e2c40480af781799b5e2854be59ee82cb54823b054022100a4a4ccb96970bf0b39ef8fa3b6a296e7f02e1fe2020f4bbe1f23321ded1aae27210309a5a288617b2f1685a8dd0d4460bdb935cf72475f6bf10d2063cfdb86f70129000007d000001976a914f7934a91973cd100d753304f9a98267c8d4e6c0a88ac00000000"
}
Parameter error
{
"success": false,
"message": "Parameter error message"
}
Nano contract not found
{
"success": false,
"message": "Nano contract not found"
}
Loading...