Okto Embedded WalletUsing Embedded Wallet
Invoke Any Smart Contract On-chain Via Code
Learn how to invoke any smart contract interaction on-chain using the Okto SDK.
Methods Overview
Methods | Description |
---|---|
async getRawTransactionStatus | Fetch raw transactions based on the provided data |
async executeRawTransaction | Execute raw transactions based on the provided data |
async executeRawTransactionWithJobStatus | Execute raw transactions with job status updates based on the provided data |
Get raw transactions
async getRawTransactionStatus(query)
fetches the status of a raw transaction based on the provided query.
Parameters
Parameter | Type | Description |
---|---|---|
query | RawTransactionStatusQuery | Query being provided fetching the data |
Response
Success Response
Field Name | Type | Description |
---|---|---|
result | Promise<RawTransactionStatusData> | Returns information about the status of raw transaction |
Execute raw transaction
async executeRawTransaction(data)
executes a raw transaction based on the provided data.
Parameters
Parameter | Type | Description |
---|---|---|
data | ExecuteRawTransaction | Data being provided for executing raw transactions |
Response
Success Response
Field Name | Type | Description |
---|---|---|
result | Promise<ExecuteRawTransactionData> | Returns information about the transaction |
Execute raw transaction with job status
async executeRawTransactionWithJobStatus(data)
executes a raw transaction and provides job status updates based on the provided data.
Parameters
Parameter | Type | Description |
---|---|---|
data | Promise<ExecuteRawTransaction> | Data being provided for executing raw transactions |
Response
Success Response
Field Name | Type | Description |
---|---|---|
result | Promise<RawTransactionStatus> | Returns information about the transaction |