Skip to content

Bug: Internal RPC error when paying in Base app #2443

@huggix

Description

@huggix

Describe the bug and the steps to reproduce it

When attempting to make a payment in the base app, we're receiving the following error in the onError callback on <Transaction /> component. This error does not occur when paying in a "normal" browser window.

Tested on 2 devices

Error received:

{
  "code": "TmTPc03",
  "error": {
    "cause": {
      "details": "Failed to sign",
      "shortMessage": "An internal error was received.",
      "version": "2.32.0",
      "name": "InternalRpcError",
      "code": -32603
    },
    "details": "Failed to sign",
    "metaMessages": [
      "Request Arguments:",
      " from: <REDACTED>"
    ],
    "shortMessage": "An internal error was received.",
    "version": "2.32.0",
    "name": "TransactionExecutionError"
  },
  "message": "Something went wrong. Please try again."
}

Source:

<Transaction
              calls={calls}
              onSuccess={handleSuccess}
              onError={handleError}
              chainId={base.id}
              onStatus={handleOnStatus}
              isSponsored={true}
            >
                {ui.depositNoticeDismissed
                ? !processingTransaction && <StyledTransactionButton
                  text={`Deposit $${amountToDeposit} USDC`}
                />
              : <StyledTransactionButton
                  text={`Continue`}
                />}
</Transaction>

What's the expected behavior?

Payment behaves like other browser windows

What version of the libraries are you using?

"@coinbase/onchainkit": "^0.38.17",`
"@farcaster/frame-sdk": "^0.0.60",

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions