I can't create a transaction

I face this error when I want to create transaction

lemzo@lemzo-ThinkPad-SL510:~/lbc$ lbc account:create
[
{
“passphrase”: “enhance purity pluck toddler candy behind frost remind apart seat record antique”,
“privateKey”: “b1428dde2326204009b56b41a72ce3bf82556e074adb31f08f42ecbcb59c319857eb4aff81da6974d71d52b51a49d92406daa65ea95096cebce4457aa19e0c8d”,
“publicKey”: “57eb4aff81da6974d71d52b51a49d92406daa65ea95096cebce4457aa19e0c8d”,
“binaryAddress”: “559cf383bc54e22697dcd4b5404acbb40709d2e6”,
“address”: “lsk6e78nzhj6tyv9mfjdrdkzre5eucutkwb4azo3s”
}
]
lemzo@lemzo-ThinkPad-SL510:~/lbc$ ^C
lemzo@lemzo-ThinkPad-SL510:~/lbc$ lbc transaction:create 5 0 1100000000 --asset=’{“username”:“lemzo”}’
? Please enter passphrase: [hidden]
? Please re-enter passphrase: [hidden]
Error: Specified key accounts:address:559cf383bc54e22697dcd4b5404acbb40709d2e6 does not exist

type or paste code here


Help me Please.
Thank you

The passphrase you’re providing doesn’t belong to any address on your blockchain. The account has to have funds.

1 Like

I provided a passphrase choosen from default/account.json and everything is ok.
YOU ARE RIGHT .

Tanks!!! once again

But the problemr is another error appears:

lemzo@lemzo-ThinkPad-SL510:~/lbc$ lbc transaction:create 5 0 1100000000 --asset=’{“username”:“lemzo”}’
? Please enter passphrase: [hidden]
? Please re-enter passphrase: [hidden]
{“transaction”:“0805100018002080d6c28c042a2088cc92c1a4db34bef11125ff112309c20d1625a4d04c89c2d31fb2f4b1916fcf32070a056c656d7a6f3a4023db2a2e91b4d018d77f13d074d95ba037bf3992a69ac9e54b7a7c3c53a0d6d195d857ed6abb2a10b604eea18ad9801c7e1ca1b063cdcb4291e990cee996e00b”}
lemzo@lemzo-ThinkPad-SL510:~/lbc$ lbc transaction:send 0805100018002080d6c28c042a2088cc92c1a4db34bef11125ff112309c20d1625a4d04c89c2d31fb2f4b1916fcf32070a056c656d7a6f3a4023db2a2e91b4d018d77f13d074d95ba037bf3992a69ac9e54b7a7c3c53a0d6d195d857ed6abb2a10b604eea18ad9801c7e1ca1b063cdcb4291e990cee996e00b
Error: _input is not defined
in wihch place must we go to define _input?

is there any tool to help know in which fileare errors and which line

Help please.
thank you

Hi
Check here command for register delegate.

When I try copy your command I have error " SyntaxError: Unexpected token ’ in JSON at position 0" be sure you write everything correct.

For me works.

`lisk@ubuntu:~/poc/app$ ./bin/run transaction:create 5 0 1100000000 --asset=’{“username”:“lemzo”}’

? Please enter passphrase: [hidden]
? Please re-enter passphrase: [hidden]

{“transaction”:“0805100018002080d6c28c042a2088c82c831131b6911b05a14b9871a6f654f52d65b0bac261b49c58cbb84800ff32070a056c656d7a6f3a4062def992b388778661df3285f81d85c1e5e476019871c454e149264b9b693410adff25da3e30cd84b940b9743f14234822f0ce45b0f00e3bbf6f72c403cbcf00”}

lisk@ubuntu:~/poc/app$ ./bin/run transaction:send 0805100018002080d6c28c042a2088c82c831131b6911b05a14b9871a6f654f52d65b0bac261b49c58cbb84800ff32070a056c656d7a6f3a4062def992b388778661df3285f81d85c1e5e476019871c454e149264b9b693410adff25da3e30cd84b940b9743f14234822f0ce45b0f00e3bbf6f72c403cbcf00

Transaction with id: ‘d6d8a3bfad85dda5fea894aac40c711bc5c29a59c74d869fa71e263333f4a4bd’ received by node.`

1 Like

Thank you my friend .
I tryed what you said to me but I still got the same error:
_input is notdefined.
thank you I will seethe link.

Did you change something in dpos register delegate transaction/schema/module ? It is standard transaction should work. Maybe delete Your .lisk folder to erase Your blockchain.

Hi @lemzo63 you probably put this piece of code to your hello_module.ts or any other module

public async afterTransactionApply({transaction, stateStore, reducerHandler}) {
        // Publish a `newHello` event for every received hello transaction
        if (_input.transaction.moduleID === this.id && _input.transaction.assetID === HelloAssetID) {

          const helloAsset = codec.decode(
            helloAssetSchema,
            _input.transaction.asset
          );

          this._channel.publish('hello:newHello', {
            sender: _input.transaction._senderAddress.toString('hex'),
            hello: helloAsset.helloString
          });
        }
    }

public async afterTransactionApply({transaction, stateStore, reducerHandler})
should be replaced with
public async afterTransactionApply(_input: TransactionApplyContext)

1 Like

Thank you very much.
It is amazing the way you are looking into my files.

You are right I did what you said and everythink is ok

:smiley:

Please can you recommand me any Lisk-Sdk developpement tool?
If it exists.

Thank you again.