Okto Embedded WalletUsing Embedded Wallet
Transferring Fungible Tokens
Learn how to transfer tokens using the Okto SDK.
Methods Overview
Methods | Description |
---|---|
async transferTokens | Transfer tokens based on the provided data |
async transferTokensWithJobStatus | Transfer tokens and provides job status updates based on the provided data |
async orderHistory | Fetch order history |
Transfer tokens
async transferTokens(data)
transfers tokens based on the provided data.
Parameters
Parameter | Type | Description |
---|---|---|
data | TransferTokens | Data being provided for transferring the tokens |
Response
Success Response
Field Name | Type | Description |
---|---|---|
result | Promise<TransferTokensData> | Returns information about the tokens transferred |
Transfer tokens with job status
async transferTokens(data)
transfers tokens with job status updates based on the provided data.
Parameters
Parameter | Type | Description |
---|---|---|
data | TransferTokens | Data being provided for transferring the tokens |
Response
Success Response
Field Name | Type | Description |
---|---|---|
result | Promise<Order> | Returns information about the order |
Fetch order history
async orderHistory(query)
fetches the order history based on the provided query.
Parameters
Parameter | Type | Description |
---|---|---|
query | Partial<OrderQuery> | Query for fetching order history |
Response
Success Response
Field Name | Type | Description |
---|---|---|
result | Promise<OrderData> | Returns information about the order history |