Skip to content
docs

RecipientBook

Defined in: poison.ts:32

Recipients the user confirmed on each chain (eip155, solana, …), newest last, capped.

new RecipientBook(storage, cap?): RecipientBook

Defined in: poison.ts:35

JsonStorage<RecipientsState>

number = 500

RecipientBook

check(namespace, address): Promise<{ known: boolean; lookalike: string | null; }>

Defined in: poison.ts:56

known → the address is one the user paid before; lookalike → it imitates one.

string

string

Promise<{ known: boolean; lookalike: string | null; }>


list(namespace): Promise<string[]>

Defined in: poison.ts:42

string

Promise<string[]>


remember(namespace, address): Promise<void>

Defined in: poison.ts:46

string

string

Promise<void>