Bitcoin Dapp Integration
π§© Overview
π API Methods
window.tokeo.bitcoin.requestAccounts(): Promise<object[]>
window.tokeo.bitcoin.requestAccounts(): Promise<object[]>[{
"address": "bc1pabc123...",
"type": "p2tr",
"network": "mainnet",
"publicKey": "abcdef1234567890..." // 64-character hex (x-only Taproot pubkey)
}]window.tokeo.bitcoin.getAccounts(): object[]
window.tokeo.bitcoin.getAccounts(): object[]window.tokeo.bitcoin.signMessage(message: string, type: 'ecdsa' | 'bip322'): Promise<string>
window.tokeo.bitcoin.signMessage(message: string, type: 'ecdsa' | 'bip322'): Promise<string>window.tokeo.bitcoin.signPsbt(psbt: string, options?: object): Promise<string>
window.tokeo.bitcoin.signPsbt(psbt: string, options?: object): Promise<string>π Permissions Model
π§ͺ Example Usage
β Error Handling
π§ Notes
Last updated
Was this helpful?