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 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 | Future<TransferTokenResponse> | Returns information about the tokens transferred |
Fetch order history
async orderHistory(query)
fetches the order history based on the provided query.
Parameters
Parameter | Type | Description |
---|---|---|
query | OrderQuery | Query for fetching order history |
Response
Success Response
Field Name | Type | Description |
---|---|---|
result | Future<OrderHistoryResponse> | Returns information about the order history |