Add cross-chain crypto payments to the embedded checkout
signer
property to the CrossmintPayElement
. The guides and documentation here leverages the rainbowkit SDK, but you can find examples for other signers at the end.
signer
object to the CrossmintPayElement
to enable cross-chain payments. Here is an outline of what that object will look like:
sendTransactionAsync
function return an object with hash
as a property. In this case you must return result.hash
.The option set here must match one of the values passed to the supportedChains
property below.
Available chains include:
mainnet: ethereum
, base
, optimism
, arbitrum
testnet: ethereum-sepolia
, base-sepolia
, optimism-sepolia
, arbitrum-sepolia
supportedChains
property and passing more than a single chain. Add logic
here that will trigger the connected wallet to switch networks to match the
selection the user makes in the Network dropdown.signAndSendTransaction
function to ensure it returns the txId hash as a string.