Skip to content
This repository has been archived by the owner on Mar 6, 2023. It is now read-only.

Problem: missing support of sign batch #13

Open
leejw51crypto opened this issue May 14, 2021 · 1 comment
Open

Problem: missing support of sign batch #13

leejw51crypto opened this issue May 14, 2021 · 1 comment
Assignees

Comments

@leejw51crypto
Copy link

add function to send a lot of txs easily

  1. sign txs as batch
  2. send by sync or async way
@linfeng-crypto
Copy link
Contributor

did some work to build the multisig StdTx, as same as in the chain-maind cli, but error in broadcast:
{'jsonrpc': '2.0', 'id': -1, 'error': {'code': -32603, 'message': 'Internal error', 'data': 'runtime error: index out of range [0] with length 0'}}
the StdTx is:

{
  "tx": {
    "msg": [
      {
        "type": "cosmos-sdk/MsgSend",
        "value": {
          "from_address": "cro1vcyncflzgqd3da3h68ndyjcn2kgt84y7jjtcee",
          "to_address": "cro1hk220qwxp0c8m3pzazardmmfv8y0mg7ukdnn37",
          "amount": [
            {
              "denom": "basecro",
              "amount": "100"
            }
          ]
        }
      }
    ],
    "fee": {
      "amount": [],
      "gas": "200000"
    },
    "signatures": [
      {
        "pub_key": {
          "type": "tendermint/PubKeyMultisigThreshold",
          "value": {
            "threshold": "2",
            "pubkeys": [
              {
                "type": "tendermint/PubKeySecp256k1",
                "value": "A6hVUjlwIwFFAQ38m7xg7tS3f4IlCZN+PVH1/lSa75NH"
              },
              {
                "type": "tendermint/PubKeySecp256k1",
                "value": "Ahc9WzVkqLNy4s11D96XGGASG9BeMlrPN7E7YvuOhwu2"
              }
            ]
          }
        },
        "signature": "CgUIAhIBwBJAttB4rkFW/MwMXgv9dUjO5P8qEoFWMhepicEFzDcfB+Ic5HjTr+NfTn7x2XquJr/sEvYknJQK25BXmsnEmHhGEhJAXYuiAJTf4yfnHg6SWA3/NzYULogroPGquZKSlXDW80w/jHJxzhU0NmPWlJFyKJeDsduovHPMG+c021Yw/hJxDg=="
      }
    ],
    "memo": "",
    "timeout_height": "0"
  },
  "mode": "|sync"
}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants