2

I have followed the documentation and followed the mentioned steps, However I am not able to sign the transaction, I guess that's because I don't know on which port Keosd is running, also kindly send me the POST body of sign transaction which i can test in postman.

Kindly help

2

1 Answer 1

1

I believe you have followed EOSBlock/EOS-Tutorials documentation. If so then you have to add the chain ID into the payload of sign_transaction.

[
  {
    "ref_block_num": 246190,
    "ref_block_prefix": 1753012779,
    "expiration": "2018-05-24T15:30:32.000",
    "actions": [
      {
        "account": "eosio.token",
        "name": "transfer",
        "authorization": [
          {
            "actor": "eosio",
            "permission": "active"
          }
        ],
        "data": "0000000000ea305500000000487a2b9d102700000000000004454f53000000001163726561746564206279206e6f70726f6d"
      }
    ],
    "signatures": []
  },
  [
    "EOS6gXwNz2SKUNAZcyjzVvg6KdNgA1bSuVzCr8c5yWkGij52JKx8V"
  ],
  ""
]

This is probably the data you have passed. There is a blank filed "" just below the signatures field. Add chain ID into that field and try again.

If it is not working or it was not the problem, share your error log. So that we can discuss deeply

13
  • I di what you said, But in postman I am getting the below error { "code": 404, "message": "Not Found", "error": { "code": 0, "name": "exception", "what": "unspecified", "details": [] } } May be the issue is with keosd running, I don't know
    – Danish
    Commented Nov 12, 2018 at 7:46
  • I am not using transfer action, I am just using the hi action of the hello contract
    – Danish
    Commented Nov 12, 2018 at 7:49
  • [ { "ref_block_num": 923, "ref_block_prefix": 3193036849, "expiration": "2018-05-24T15:30:32.000", "actions": [ { "account": "default", "name": "hi", "authorization": [ { "actor": "eosio", "permission": "active" } ], "data": "0000000000ea3055" } ], "signatures": [] }, [ "myKey" ], "myChainId" ]
    – Danish
    Commented Nov 12, 2018 at 7:49
  • Make sure keosd is running and nodeos and keosd are running in different ports "cleos -u nodeosd:8888 --wallet-url localhost:8080 wallet create" Commented Nov 12, 2018 at 9:32
  • To change default keosd port, set http-server-address value in wallet config (~/eosio-wallet/config.ini) Commented Nov 12, 2018 at 9:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.