get transaction nonce #
GET
/nonce/:vk
Get the current nonce for a vk
Example https://masternode-01.lamden.io/nonce/f16c130ceb7ed9bcebde301488cfd507717d5d511674bc269c39ad41fc15d780
JSON response #
{
"nonce": 0,
"processor": "5b09493df6c18d17cc883ebce54fcb1f5afbd507533417fe32c006009a9c3c4a",
"sender":
"f16c130ceb7ed9bcebde301488cfd507717d5d511674bc269c39ad41fc15d780"
}
post transaction #
POST
/
POST transactions as JSON strings
to the blockchain. Transactions can be submitted to any masternode but they must be submutted to the same masternode that provided the nonce.
JSON body #
{
"metadata": {
"signature": "fa4afe36080b5a79d9cfc8b1207df7d147f1e87e1880384b63ea417967ee1515e0ab9a471bd61d0834cb381f80780dee1eaed85e126e31a2eae732b2b5520c0a",
"timestamp": 1601498663
},
"payload": {
"contract": "currency",
"function": "transfer",
"kwargs": {
"amount": {"__fixed__":"100.5"},
"to": "f16c130ceb7ed9bcebde301488cfd507717d5d511674bc269c39ad41fc15d780"
},
"nonce": 32,
"processor": "89f67bb871351a1629d66676e4bd92bbacb23bd0649b890542ef98f1b664a497",
"sender": "f16c130ceb7ed9bcebde301488cfd507717d5d511674bc269c39ad41fc15d780",
"stamps_supplied": 40
}
}
POST request to: https://masternode-01.lamden.io/
JSON response #
{
"success": "Transaction successfully submitted to the network.",
"hash": "a0843c1d0a5ff8a69ccc60c59b1b3571fde1ecd1766a1d54cac430df8b26fe5b"
}
get transaction details #
GET
/tx?hash=:hash_value
Return the result
and information
of a transaction
Example https://masternode-01.lamden.io/tx?hash=0635f6bb38f9a807d2f4dd00723dfa80ff248593f5223cd5c3058645ac624329
JSON response #
{
"hash": "0635f6bb38f9a807d2f4dd00723dfa80ff248593f5223cd5c3058645ac624329",
"result": "None",
"stamps_used": 19,
"state": [
{
"key": "currency.balances:0000803efd5df09c75c0c6670742db5074e5a011b829dfd8a0c50726d263a345",
"value": {
"__fixed__": "272976757.20050000"
}
},
{
"key": "currency.balances:3fa3da8a3dc59e712c3039f3811bfae52ed2fcb17dbeef62f555bd993ef9cfc2",
"value": 1
}
],
"status": 0,
"transaction": {
"metadata": {
"signature": "6f24ef39426e9823ce53a7582a936e1de2b70acd0e2f4882a901aaff3c31c36575e952f631be749b9156c0ab6a2e5ba8c400d64ed76eb630e07bc9f70fd37c05",
"timestamp": 1601337869
},
"payload": {
"contract": "currency",
"function": "transfer",
"kwargs": {
"amount": 1,
"to": "3fa3da8a3dc59e712c3039f3811bfae52ed2fcb17dbeef62f555bd993ef9cfc2"
},
"nonce": 16,
"processor": "5b09493df6c18d17cc883ebce54fcb1f5afbd507533417fe32c006009a9c3c4a",
"sender": "0000803efd5df09c75c0c6670742db5074e5a011b829dfd8a0c50726d263a345",
"stamps_supplied": 100
}
}
}