Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
async function signTransaction(wallet, transaction) { return await wallet.signTransaction({ type: 0, to: transaction.to, from: wallet.address, nonce: transaction.nonce, gasLimit: transaction.gas, gasPrice: transaction.gas_price, data: transaction.data, value: transaction.value, chainId: ethers.toBeHex(transaction.chain_id), }); }