Documentation Index
Fetch the complete documentation index at: https://sequence-0fb8d9e6-6461-checkout-updates.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
メッセージに署名する
外部ブラウザでメッセージに署名する。
Chain chain = Chain.TestnetAbitrumSepolia;
string message = "Your message to sign.";
SignMessageResponse response = await wallet.SignMessage(chain, message);
string signature = response.signature;
トランザクションを送信する
テストネットやGas Sponsorshipを利用している場合、ガス代を支払わずにトランザクションを送信できます。
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);
手数料オプションを指定してトランザクションを送信する
ユーザーが利用可能な手数料オプションを取得し、トランザクション送信時に使用するものを選択します。
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 option
string txnHash = await wallet.SendTransaction(chain, transactions, feeOption);
お使いのウォレットがトランザクションに対応しているか確認する
Transactions[]配列を渡すことで、複数のトランザクションに対して同じ呼び出しを行うことができます。
Chain chain = Chain.TestnetAbitrumSepolia;
Address to = new Address("0x33985d320809E26274a72E03268c8a29927Bc6dA");
ITransaction transaction = new Transaction(to, 0, "implicitEmit()");
bool supported = await wallet.SupportsTransaction(chain, transaction);