configure and an active wallet session. React Native wallet, transaction, signature, and balance APIs take chainId as a string, such as 137 for Polygon mainnet or 80002 for Polygon Amoy.
Get Supported Networks
List networks supported by this SDK build.Promise<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
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 raw calldata transactions. |
mode | 'native', 'relayer', or undefined | Transaction mode. |
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 Raw Calldata
Usedata when you already have encoded calldata.
sendTransaction parameters.
Returns
Returns Promise<OmsSendTransactionResponse>.
Call A Contract
UsecallContract 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 Wallet API ABI args. |
mode | 'native', 'relayer', or undefined | Transaction mode. |
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.
Use a first-available selector when you want to choose the first fee option whose availableRaw balance covers the quoted fee value. The current React Native wrapper exposes fee selection through the selectFeeOption callback shape.
On testnets, fee options are automatically sponsored, so you usually do not need to choose a fee token.
option.selection when choosing a quoted fee option. It uses tokenId when present and falls back to the token symbol for native fee options. Returning null is only valid for sponsored transactions.
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 sendTransaction or 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
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
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
UsesignTypedData 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.