API Reference

Complete API reference for OneKey's Algorand provider

Complete reference for OneKey's Algorand provider methods and types.


Methods

Method
Description

connect()

Connect wallet (legacy)

disconnect()

Disconnect wallet

enable(opts?)

Enable wallet (ARC-0001)

signTxns(transactions)

Sign transactions (ARC-0001)

postTxns(signedTxns)

Broadcast transactions

signAndPostTxns(transactions)

Sign and broadcast

signTransaction(txns)

Sign transactions (legacy)

signAndSendTransaction(txns)

Sign and send (legacy)

signMessage(message, encoding?)

Sign arbitrary message

getAlgodv2Client()

Get Algod client

getIndexerClient()

Get Indexer client


Types

Enable Options

Enable Result

Wallet Transaction

Sign Txns Result

Post Txns Result


Properties

Property
Type
Description

isConnected

boolean

Connection status

address

string | null

Connected address

isOneKey

boolean

OneKey identifier


Events

Event
Parameters
Description

connect

{ address }

Wallet connected

disconnect

-

Wallet disconnected

accountChanged

address

Account changed


Error Codes

Code
Description

4001

User rejected request

4100

Unauthorized

4200

Unsupported method

4300

Invalid input

Last updated

Was this helpful?