Constructors
- new ARWEAVE(key: string | object): ARWEAVE
Methods
- balance(): Promise<undefined | string>
Returns Promise<undefined | string>
- pinFile(data: Buffer, filename: string, size: number, mimeType: string, waitForConfirmation?: boolean): Promise<undefined | string>
Parameters
data: Buffer
filename: string
size: number
mimeType: string
waitForConfirmation: boolean = false
Returns Promise<undefined | string>
- pinString(data: string, waitForConfirmation?: boolean): Promise<undefined | string>
Parameters
data: string
waitForConfirmation: boolean = false
Returns Promise<undefined | string>
- status(hash: string): Promise<{ data: TransactionStatusResponse; error?: undefined; success: boolean } | { data?: undefined; error: unknown; success: boolean }>
Parameters
Returns Promise<{ data: TransactionStatusResponse; error?: undefined; success: boolean } | { data?: undefined; error: unknown; success: boolean }>
- wait(data: { hash: string; interval?: number; maxAttempts?: number; maxErrors?: number }): Promise<{ error?: string; result?: any; success: boolean }>
Parameters
data: { hash: string; interval?: number; maxAttempts?: number; maxErrors?: number }
Returns Promise<{ error?: string; result?: any; success: boolean }>