Properties
Methods
getAccounts
- getAccounts(): Promise<string[]>
Returns Promise<string[]>
getPublicKey
- getPublicKey(): Promise<string>
Returns Promise<string>
on
- on(event, listener): void
Parameters
- event: "accountsChanged"
- listener: ((accounts: string[]) => void)
- (accounts): void
Returns void
Returns void
- on(event, listener): void
Parameters
- event: "chainChanged" | "networkChanged"
- listener: ((network: UnisatNetwork) => void)
- (network): void
Returns void
Returns void
pushPsbt
- pushPsbt(psbtHex): Promise<string>
Returns Promise<string>
pushTx
- pushTx(options): Promise<string>
Parameters
- options: {
rawtx: string;
}
Returns Promise<string>
removeListener
- removeListener(event, listener): void
Parameters
- event: "accountsChanged"
- listener: ((accounts: string[]) => void)
- (accounts): void
Returns void
Returns void
- removeListener(event, listener): void
Parameters
- event: "networkChanged"
- listener: ((network: UnisatNetwork) => void)
- (network): void
Returns void
Returns void
requestAccounts
- requestAccounts(): Promise<string[]>
Returns Promise<string[]>
sendBitcoin
- sendBitcoin(toAddress, satoshis, options): Promise<string>
Parameters
- toAddress: string
- satoshis: number
- options: {
feeRate: number;
memo?: string;
memos?: string[];
}feeRate: number
Optional
memo?: string
Optional
memos?: string[]
Returns Promise<string>
signMessage
- signMessage(message, type?): Promise<string>
Returns Promise<string>
signPsbt
- signPsbt(psbtHex, psbtOptions): Promise<string>
Returns Promise<string>
signPsbts
- signPsbts(psbtHex, psbtOptions): Promise<string[]>
Returns Promise<string[]>
switchNetwork
- switchNetwork(network): Promise<void>
Returns Promise<void>