Create an on chain blueprint transaction.
POST/wallet/nano-contracts/create-on-chain-blueprint
Create an on chain blueprint transaction.
Request
Header Parameters
x-wallet-id stringrequired
Defines the key of the wallet on which the request will be executed.
- application/json
Body
required
Data to create the on chain blueprint.
code stringrequired
Blueprint code.
address stringrequired
Address caller that will sign the on chain blueprint transaction.
Responses
- 200
Create the on chain blueprint
- application/json
- Schema
- success
- no-wallet-id
- invalid-wallet-id
Schema
any
Success
{
"success": true,
"inputs": [],
"outputs": [],
"signalBits": 0,
"version": 6,
"weight": 21.99328529001309,
"nonce": 782869,
"timestamp": 1740594655,
"parents": [
"0008f0e9dbe6e4bbc3a85fce7494fee70011b9c7e72f5276daa2a235355ac013",
"008d81d9d58a43fd9649f33483d804a4417247b4d4e4e01d64406c4177fee0c2"
],
"tokens": [],
"hash": "000001b28c9dcffde620193906952714401d9208569b5aa923ec18ace525a86a",
"code": {
"kind": "python+gzip",
"content": {
"type": "Buffer",
"data": []
}
}
}
No wallet id parameter
{
"success": false,
"message": "Parameter 'wallet-id' is required."
}
Wallet id parameter is invalid
{
"success": false,
"message": "Invalid wallet-id parameter."
}
Loading...