Error while getting constructed tx with api.tx

Hello,

I am trying to construct a transaction and broadcast it. I am offline signing the transaction. The code below is how i construct the transaction.

  const [
    {
      address: toAddress,
      amount,
    },
  ] = to;

  const unsigned = methods.balances.transferAllowDeath(
    {
      dest: { id: toAddress },
      value: amount,
    },
    {
      address: account.address,
      blockHash,
      blockNumber: registry
        .createType('BlockNumber', block.header.number)
        .toNumber(),
      eraPeriod: ERA,
      genesisHash,
      metadataRpc,
      nonce: BigNumber(nonce).toNumber(),
      specVersion,
      tip: BigNumber(tip).toNumber(),
      transactionVersion,
    },
    {
      metadataRpc,
      registry,
    },
  );

    const signedTransaction = construct.signedTx(
      unsigned,
      signatureWithPrefix,
      {
        metadataRpc,
        registry,
      },
    );

    const transactionToSubmit = api.tx(signedTransaction);

the api.tx function gives me the createType(ExtrinsicV4):: createType(Call):: findMetaCall: Unable to find Call with index [229, 67]/[229,67] error

Can you guide me? Thanks

1 Like

hey, could you maybe try this out?