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
client.supportedNetworks returns every Network supported by the SDK build. Top-level supportedNetworks returns the same list. Lookup helpers return Network?.
Send A Transaction
sendTransaction sends native tokens. Values are raw base-unit integers. Use parseUnits for display amounts.
| Parameter | Type | Description |
|---|---|---|
network | Network | Supported SDK network, such as Network.POLYGON or Network.AMOY. |
to | String | Recipient address. |
value | BigInteger | Raw base-unit native token value. |
waitForStatus | Boolean | Defaults to true. Set to false to return immediately after execution. |
statusPolling | TransactionStatusPollingOptions? | Optional fast poll, slow poll, and timeout configuration. |
selectFeeOption | FeeOptionSelector? | Optional callback for selecting a fee option. |
SendTransactionResponse.
| Field | Type | Description |
|---|---|---|
txnId | String | Wallet transaction ID. |
status | TransactionStatus | Latest transaction status returned by OMS Wallet. |
txnHash | String? | Onchain transaction hash when available. |
Send Raw Calldata
Use the transaction request overload when you already have encoded calldata.| Parameter | Type | Description |
|---|---|---|
network | Network | Supported SDK network. |
request | SendTransactionRequest | Request with to, raw value, optional encoded calldata data, and mode. |
waitForStatus | Boolean | Defaults to true. Set to false to return immediately after execution. |
statusPolling | TransactionStatusPollingOptions? | Optional fast poll, slow poll, and timeout configuration. |
selectFeeOption | FeeOptionSelector? | Optional callback for selecting a fee option. |
SendTransactionResponse.
Call A Contract With Method And Args
UsecallContract for state-changing contract methods. The SDK prepares the contract call, executes it, and polls for transaction status.
| Parameter | Type | Description |
|---|---|---|
network | Network | Supported SDK network. |
contract | String | Contract address to call. |
method | String | ABI method signature, such as transfer(address,uint256). |
args | List<AbiArg>? | Method arguments as ABI args. |
mode | TransactionMode | Transaction mode. Defaults to TransactionMode.Relayer. |
waitForStatus | Boolean | Defaults to true. Set to false to return immediately after execution. |
statusPolling | TransactionStatusPollingOptions? | Optional fast poll, slow poll, and timeout configuration. |
selectFeeOption | FeeOptionSelector? | Optional callback for selecting a fee option. |
SendTransactionResponse.
Select A Fee Option
When a prepared transaction returns fee options, pass a selector callback. The selector receives fee options enriched with the wallet balance for each fee token when available. UseFeeOptionSelector.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 a list of FeeOptionWithBalance values. Each item includes feeOption, selection, and optional balance, available, availableRaw, and decimals fields.
Returns
Return FeeOptionSelection?.
Polling And Status
Transaction helpers execute and poll for transaction status. Fetch status directly when you have a Wallet transaction ID.| Parameter | Type | Description |
|---|---|---|
txnId | String | Wallet transaction ID returned by sendTransaction or callContract. |
TransactionStatusResponse.
Sign A Message
| Parameter | Type | Description |
|---|---|---|
network | Network | Supported SDK network. |
message | String | Plaintext message to sign. |
String, the hex-encoded signature.
Verify A Message Signature
| Parameter | Type | Description |
|---|---|---|
network | Network | Supported SDK network. |
message | String | Original plaintext message. |
signature | String | Hex-encoded signature to verify against the selected wallet. |
Boolean.
Sign Typed Data
UsesignTypedData for EIP-712 typed data. Build the payload with JsonElement values.
| Parameter | Type | Description |
|---|---|---|
network | Network | Supported SDK network. |
typedData | JsonElement | EIP-712 typed-data payload. |
String, the hex-encoded signature.
Verify Typed Data
Verify an EIP-712 typed-data signature against the selected wallet.| Parameter | Type | Description |
|---|---|---|
network | Network | Supported SDK network. |
typedData | JsonElement | Original EIP-712 typed-data payload. |
signature | String | Hex-encoded signature to verify. |
Boolean.