You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi i am kind of a beginner to Javascript and bigchaindb and i am storing this test asset to testnet, can anyone tell me how can i actually retrieve this asset back with any query?
This is my code:
Hi i am kind of a beginner to Javascript and bigchaindb and i am storing this test asset to testnet, can anyone tell me how can i actually retrieve this asset back with any query?
This is my code:
const driver = require('bigchaindb-driver')
const API_PATH = 'http://localhost:9984/api/v1/'
const conn = new driver.Connection(API_PATH)
const jaybigdbtest = new driver.Ed25519Keypair()
const assetdata = {
'userdetails': {
'USERID': '$Paraverse$2022',
'Username': 'JayForTest',
'password': 'BigChainDB',
}
}
const txCreatejaybigdbtestSimple = driver.Transaction.makeCreateTransaction(
assetdata,
null, //since no metadata so null
// A transaction needs an output
[ driver.Transaction.makeOutput(
driver.Transaction.makeEd25519Condition(jaybigdbtest.publicKey))
],
jaybigdbtest.publicKey
)
const txCreatejaybigdbtestSimpleSigned = driver.Transaction.signTransaction(txCreatejaybigdbtestSimple, jaybigdbtest.privateKey)
conn.postTransactionCommit(txCreatejaybigdbtestSimpleSigned)
console.log('asset pushed!!!')
The text was updated successfully, but these errors were encountered: