Decode nano contract
GET/wallet/nano-contract/decode
Returns the nano contract transaction decoded
Request
Query Parameters
hex_tx stringrequired
Nano contract to be decoded in hexadecimal
Responses
- 200
Success
- application/json
- Schema
- success
- error
Schema
any
Success
{
"success": true,
"nano_contract": {
"type": "NanoContractMatchValues",
"oracle_pubkey_hash": "6o6ul2c+sqAariBVW+CwNaSJb9w=",
"min_timestamp": 1,
"oracle_data_id": "some_id",
"value_dict": {
"1Pa4MMsr5DMRAeU1PzthFXyEJeVNXsMHoz": 300
},
"fallback_pubkey_hash": "13Y2oCMN8Lb6F3RLoPEofZz1bvX75dvEb",
"value": 2000
},
"outputs": [
{
"type": "P2PKH",
"address": "1Q4qyTjhpUXUZXzwKs6Yvh2RNnF5J1XN9a",
"timelock": null,
"value": 4294967295,
"token_data": 0
}
],
"my_inputs": [
{
"tx_id": "7918fd6dfe9df2abf3010b1403efbedafcc86167a5c44cf65cd525ca40ca43b7",
"index": 0,
"data": ""
}
],
"other_inputs": []
}
Invalid transaction
{
"success": false,
"message": "Invalid transaction"
}
Loading...