Skip to content

example code seems to throw transaction status error #1

@DoctorKhan

Description

@DoctorKhan

I replaced the "local" seednode ip with testnet as per instructions in api.dispatchlabs.io: 35.197.127.151:1975

$ npm run examples

@dispatchlabs/dispatch-js@2.4.2 examples /home/khan/Projects/dispatch-js
node ./examples/node/

--- ACCOUNT EXAMPLES ---

Temp account:
{"address":"778b3d5df78fe3fe16506d264fb909047c7e5830","privateKey":"31c914c223ce2baeb121877792d0df85279e94bd9a9c824b1a4beb9f4742695e","publicKey":"049849097e8b48c0aa1e8bfcb39b6df8fca9958f3a8260ede10558748037c51ea076b3c2638604bd78dd3f75a56cd65b00746cf8302975dd39c56e62b0478dfe05","balance":"0","availableHertz":"0"}

New "sendTokens" transaction:
{"hash":"32c58c6de1e3048744c89c9e1ae57f1651fca0f5a4eead36f8e8ecbf43a0bea0","type":0,"from":"6b728eb24434d31a3e7153f64da0a039bff307e4","to":"778b3d5df78fe3fe16506d264fb909047c7e5830","value":"5","code":"","abi":"[]","method":"","params":"[]","time":1546994675495,"signature":"5820f92e43a2d09bfc32a0ae73cb3010f9b749d40533a349eb842b65a52f99153a1988d374aae1bce9ac5438306e1f5cd51266886ac5a0e431e59cf813dac19e01","hertz":"0","fromName":"NodeSDKTest"}

Transaction status error:
{"hash":"32c58c6de1e3048744c89c9e1ae57f1651fca0f5a4eead36f8e8ecbf43a0bea0","type":0,"from":"6b728eb24434d31a3e7153f64da0a039bff307e4","to":"778b3d5df78fe3fe16506d264fb909047c7e5830","value":"5","abi":"[]","params":"[]","time":1546994675495,"signature":"5820f92e43a2d09bfc32a0ae73cb3010f9b749d40533a349eb842b65a52f99153a1988d374aae1bce9ac5438306e1f5cd51266886ac5a0e431e59cf813dac19e01","hertz":"0","receipt":{"transactionHash":"32c58c6de1e3048744c89c9e1ae57f1651fca0f5a4eead36f8e8ecbf43a0bea0","status":"InsufficientHertz","created":"2019-01-09T00:44:43.781461643Z"}}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions