Networks entries from @0xsequence/typescript-sdk for network arguments and viem-compatible EVM values for addresses, calldata, ABI definitions, and bigint amounts.
Supported Networks
Use the SDK network registry when passingnetwork to wallet and indexer calls.
findNetworkById takes a numeric chain ID. findNetworkByName takes a registry name such as polygon, amoy, or base-sepolia.
Returns
Networks is the named network registry. supportedNetworks returns every Network supported by the SDK build. findNetworkById and findNetworkByName return a Network or undefined.
Send A Transaction
sendTransaction sends native tokens when you pass to and value. Values are raw base-unit bigint values.
| Parameter | Type | Description |
|---|---|---|
network | Network | SDK network entry, such as Networks.polygon or Networks.amoy. |
to | Address | Recipient address or contract address. |
value | bigint or undefined | Raw base-unit native token value. Required for native transfers and optional for calldata or ABI transactions. |
data | Hex or undefined | Encoded calldata for raw calldata transactions. |
abi | Abi, readonly array, or undefined | viem-compatible ABI for ABI transactions. |
functionName | ContractFunctionName | ABI function name when abi is provided. |
args | ABI-derived tuple | Function arguments when abi is provided. |
mode | TransactionMode or undefined | Transaction mode. Defaults to TransactionMode.Relayer. |
selectFeeOption | FeeOptionSelector or undefined | Optional callback for selecting a fee option. |
waitForStatus | boolean or undefined | Set to false to return after execution without polling transaction status. |
statusPolling | TransactionStatusPollingOptions or undefined | Polling timeout and interval overrides. |
Promise<SendTransactionResponse>.
| Field | Type | Description |
|---|---|---|
txnId | string | Wallet transaction ID. |
status | TransactionStatus | Latest transaction status returned by OMS Wallet. |
txnHash | string or undefined | Onchain transaction hash when available. |
Send Raw Calldata
Usedata when you already have encoded calldata.
sendTransaction parameters.
Returns
Returns Promise<SendTransactionResponse>.
Call A Contract With An ABI
Pass a viem-compatible ABI, function name, and args. The SDK uses viem to encode calldata.sendTransaction parameters.
Returns
Returns Promise<SendTransactionResponse>.
Call A Contract With Method And Args
The wallet client also exposescallContract for method-string calls.
| Parameter | Type | Description |
|---|---|---|
network | Network | SDK network entry, such as Networks.polygon or Networks.amoy. |
contractAddress | Address | Contract address to call. |
method | string | ABI method signature, such as transfer(address,uint256). |
args | AbiArg[] or undefined | Method arguments as Wallet API ABI args. |
mode | TransactionMode or undefined | Transaction mode. Defaults to TransactionMode.Relayer. |
selectFeeOption | FeeOptionSelector or undefined | Optional callback for selecting a fee option. |
waitForStatus | boolean or undefined | Set to false to return after execution without polling transaction status. |
statusPolling | TransactionStatusPollingOptions or undefined | Polling timeout and interval overrides. |
Promise<SendTransactionResponse>.
Select A Fee Option
When OMS Wallet returns fee options, passselectFeeOption. The selector receives fee options enriched with the wallet balance for each token when available.
Use FeeOptionSelector.firstAvailable when you want the SDK to choose the first fee option whose availableRaw balance covers the quoted fee value. This is the standard selector for apps that do not need a custom fee-token picker.
On testnets, fee options are automatically sponsored, so you usually do not need to choose a fee token.
selectFeeOption receives FeeOptionWithBalance[]. Each item includes feeOption, selection, and optional balance, available, availableRaw, and decimals fields.
Returns
Return FeeOptionSelection, undefined, or a promise for either value.
Polling And Status
By default,sendTransaction executes and polls for transaction status.
waitForStatus: false, then fetch status later.
| Parameter | Type | Description |
|---|---|---|
txnId | string | Wallet transaction ID returned by sendTransaction or callContract. |
Promise<TransactionStatusResponse>.
| Field | Type | Description |
|---|---|---|
status | TransactionStatus | Latest Wallet transaction status. |
txnHash | string or undefined | Onchain transaction hash when available. |
Sign A Message
signMessage returns a hex-encoded signature for the active wallet.
| Parameter | Type | Description |
|---|---|---|
network | Network | SDK network entry. |
message | string | Plaintext message to sign. |
Promise<string>, the hex-encoded signature.
Verify A Message Signature
isValidMessageSignature verifies a message signature against the wallet address or wallet ID you provide. If neither is provided, the active wallet session ID is used when available.
| Parameter | Type | Description |
|---|---|---|
network | Network or undefined | SDK network entry. |
walletAddress | Address or undefined | Wallet address to verify the signature against. |
walletId | string or undefined | Wallet ID to verify when walletAddress is not supplied. |
message | string | Original plaintext message. |
signature | string | Hex-encoded signature to verify. |
Promise<boolean>.
Sign Typed Data
UsesignTypedData for EIP-712 typed data.
| Parameter | Type | Description |
|---|---|---|
network | Network | SDK network entry. |
typedData | any | EIP-712 typed-data payload. |
Promise<string>, the hex-encoded signature.
Verify Typed Data
Verify an EIP-712 signature against the wallet address or wallet ID you provide.| Parameter | Type | Description |
|---|---|---|
network | Network or undefined | SDK network entry. |
walletAddress | Address or undefined | Wallet address to verify the signature against. |
walletId | string or undefined | Wallet ID to verify when walletAddress is not supplied. |
typedData | any | Original EIP-712 typed-data payload. |
signature | string | Hex-encoded signature to verify. |
Promise<boolean>.