Blockchain Transactions on WAVES Platform

API Docs: https://testnet.wavesplatform.com/api-docs/index.html

IDE Test Environment: https://waves-ide.com/

Manually Create Waves Transaction

https://waves-ide.com/

// Create the transaction:
const tx = transfer({amount: 100000000, fee: 500000, sender: ‘3Mz2NGq2EYdCoZCyabseCU2DMSrry9uCARv’, senderPublicKey: ‘3qb4c1daxKReucuP17N5umaE49VPMF7xgi9WEE4KhiVP’, recipient: ‘3N7y6wwuS6dW58FMxzkcsAyasxLMzegWBaM’},null)
// Sign the Transaction with my private key:
const signedTx = signTx(tx)
// Broadcast the transaction:
const resp = await broadcast(signedTx)

Retrieve Last Two Transactions For a Wallet
jgriffiths@cynical:~/git/waves$ curl -s -X GET "https://nodes-testnet.wavesnodes.com/transactions/address/3Mz2NGq2EYdCoZCyabseCU2DMSrry9uCARv/limit/2" -H "accept: application/json" | python -m json.tool
 [
     [
         {
             "amount": 1000000000,
             "applicationStatus": "succeeded",
             "assetId": null,
             "attachment": "",
             "fee": 100000,
             "feeAsset": null,
             "feeAssetId": null,
             "height": 1453317,
             "id": "6YwaYmKkdpe9qbrdZFG5PNWTbBBC4SoddSSCduCCU4Qc",
             "proofs": [
                 "3XMBnWYei9dM45bcwtWft8KCtKJkBPyZTidE9UQQbo7nZBALbYjcRynkJEWXUXAEpv2eCS7LahyLmmfQJTscNViJ"
             ],
             "recipient": "3Mz2NGq2EYdCoZCyabseCU2DMSrry9uCARv",
             "sender": "3Myqjf1D44wR8Vko4Tr5CwSzRNo2Vg9S7u7",
             "senderPublicKey": "9oYuF7V66UNpD2AgYHb6t2j9GYrf3c6hRvwtop6uD6Rx",
             "timestamp": 1616678129579,
             "type": 4,
             "version": 2
         }
     ]
 ]
 jgriffiths@cynical:~/git/waves$

Leave a Reply

Your email address will not be published. Required fields are marked *