Send transactions without paying for gas fees on any testnet or when using Gas Sponsorship.
Copy
Ask AI
Chain chain = Chain.TestnetAbitrumSepolia;Address to = new Address("0x33985d320809E26274a72E03268c8a29927Bc6dA");ITransaction[] transactions = new Transaction[]{ new Transaction(to, 0, "implicitEmit()"), new Transaction(to, 0, "explicitEmit()")};string txnHash = await wallet.SendTransaction(chain, transactions);
Get available fee options for the user and choose one to use when sending the transaction.
Copy
Ask AI
Chain chain = Chain.TestnetAbitrumSepolia;Address to = new Address("0x33985d320809E26274a72E03268c8a29927Bc6dA");ITransaction[] transactions = new Transaction[]{ new Transaction(to, 0, "implicitEmit()"), new Transaction(to, 0, "explicitEmit()")};FeeOption[] feeOptions = await _wallet.GetFeeOption(chain, transactions);FeeOption feeOption = feeOptions[0]; // Choose a way to select the appropriate optionstring txnHash = await wallet.SendTransaction(chain, transactions, feeOption);