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

up vote 1 down vote accepted

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

  • 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 Nov 12 at 7:46
  • I am not using transfer action, I am just using the hi action of the hello contract – Danish Nov 12 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 Nov 12 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" – Blockchain Experts Nov 12 at 9:32
  • To change default keosd port, set http-server-address value in wallet config (~/eosio-wallet/config.ini) – Blockchain Experts Nov 12 at 9:34

Your Answer

 

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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