OMSClient instance named oms. React Native wallet, transaction, and signature APIs take chainId as a string, such as 137 for Polygon mainnet or 80002 for Polygon Amoy. Indexer APIs use OmsNetwork values from oms.supportedNetworks, or networkType when you are querying a network group.
Get Supported Networks
Read networks supported by this SDK build fromoms.supportedNetworks.
OmsNetwork[].
| Field | Type | Description |
|---|---|---|
chainId | string | EVM chain ID as a string. |
name | string | Network registry name. |
nativeTokenSymbol | string | Native token symbol. |
explorerUrl | string | Block explorer URL. |
displayName | string | Display name for UI. |
Send A Transaction
oms.wallet.sendTransaction sends native tokens when you pass to and value. Values are raw base-unit integer strings.
| Parameter | Type | Description |
|---|---|---|
chainId | string | EVM chain ID as a string. |
to | string | Recipient address or contract address. |
value | string | Raw base-unit native token value. |
data | string, null, or undefined | Encoded calldata for contract transactions. |
mode | 'native', 'relayer', or undefined | Advanced execution option. Omit it for the default behavior. |
selectFeeOption | OmsFeeOptionSelector, null, or undefined | Optional callback for selecting a fee option. |
waitForStatus | boolean or undefined | Defaults to true. Pass false to return immediately after transaction execution starts. |
statusPolling | OmsTransactionStatusPollingOptions or undefined | Optional post-execute polling controls. |
Promise<OmsSendTransactionResponse>.
| Field | Type | Description |
|---|---|---|
txnId | string | Wallet transaction ID. |
status | string | Latest transaction status returned by OMS Wallet. |
txnHash | string or null | On-chain transaction hash when available. |
Send Encoded Calldata
Usedata when you already have encoded calldata.
oms.wallet.sendTransaction parameters.
Returns
Returns Promise<OmsSendTransactionResponse>.
Call A Contract
Useoms.wallet.callContract when you want the SDK to submit a method-string contract call.
| Parameter | Type | Description |
|---|---|---|
chainId | string | EVM chain ID as a string. |
contractAddress | string | Contract address to call. |
method | string | ABI method signature, such as transfer(address,uint256). |
args | CallContractArg[], null, or undefined | Method arguments as ABI argument objects. |
mode | 'native', 'relayer', or undefined | Advanced execution option. Omit it for the default behavior. |
selectFeeOption | OmsFeeOptionSelector, null, or undefined | Optional callback for selecting a fee option. |
waitForStatus | boolean or undefined | Defaults to true. Pass false to return immediately after transaction execution starts. |
statusPolling | OmsTransactionStatusPollingOptions or undefined | Optional post-execute polling controls. |
Promise<OmsSendTransactionResponse>.
By default, transaction methods poll for status after execute until the status resolves or the default timeout is reached. Pass waitForStatus: false to return immediately after execute, or pass statusPolling to tune timeoutMs, intervalMs, fastIntervalMs, and fastPollCount.
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.
On testnets, all transactions are sponsored and do not require picking a fee option.
Use a first-available selector when you want to choose the first fee option whose availableRaw balance covers the quoted fee value.
option.selection when choosing a quoted fee option. It uses tokenId when present and falls back to the token symbol for native fee options.
Parameters
selectFeeOption receives OmsFeeOptionWithBalance[]. Each item includes feeOption, selection, and optional balance fields such as availableRaw.
Returns
Return OmsFeeOptionSelection, null, or a promise for either value.
Get Transaction Status
Fetch the current status for a wallet transaction ID.| Parameter | Type | Description |
|---|---|---|
txnId | string | Wallet transaction ID returned by oms.wallet.sendTransaction or oms.wallet.callContract. |
Promise<OmsTransactionStatus>.
| Field | Type | Description |
|---|---|---|
status | string | Latest Wallet transaction status. |
txnHash | string or null | On-chain transaction hash when available. |
Sign A Message
oms.wallet.signMessage returns a hex-encoded signature for the active wallet.
| Parameter | Type | Description |
|---|---|---|
chainId | string | EVM chain ID as a string. |
message | string | Plaintext message to sign. |
Promise<string>, the hex-encoded signature.
Verify A Message Signature
oms.wallet.verifyMessageSignature verifies a message signature against the active wallet session.
| Parameter | Type | Description |
|---|---|---|
chainId | string | EVM chain ID as a string. |
message | string | Original plaintext message. |
signature | string | Hex-encoded signature to verify. |
Promise<boolean>.
Sign Typed Data
Useoms.wallet.signTypedData for EIP-712 typed data.
| Parameter | Type | Description |
|---|---|---|
chainId | string | EVM chain ID as a string. |
typedData | unknown | EIP-712 typed-data payload. Must be JSON serializable. |
Promise<string>, the hex-encoded signature.
Verify Typed Data
Verify an EIP-712 signature against the active wallet session.| Parameter | Type | Description |
|---|---|---|
chainId | string | EVM chain ID as a string. |
typedData | unknown | Original EIP-712 typed-data payload. Must be JSON serializable. |
signature | string | Hex-encoded signature to verify. |
Promise<boolean>.
Parse Units
Convert a decimal display value to a raw base-unit integer string.| Parameter | Type | Description |
|---|---|---|
value | string | Decimal display value. |
decimals | number or undefined | Token decimals. Defaults to 18. |
options.roundingMode | 'reject' or 'nearest' | Defaults to 'nearest'. Use 'reject' to fail on non-zero fractional precision beyond decimals. |
string.
Format Units
Convert a raw base-unit value to a decimal display string.| Parameter | Type | Description |
|---|---|---|
value | string or bigint | Raw base-unit integer value. |
decimals | number or undefined | Token decimals. Defaults to 18. |
string.