Constructors
Parameters
filename: string
optionalfileMetadata: Field
Methods
- binaryFields(): Promise<Field[]>
- metadata(): Promise<{ mimeType: string; size: number }>
Returns Promise<{ mimeType: string; size: number }>
- pin(params: { arweaveKey?: string; keyvalues?: object; pinataJWT?: string }): Promise<string>
Parameters
params: { arweaveKey?: string; keyvalues?: object; pinataJWT?: string }
Returns Promise<string>
- pngFields(): Promise<Field[]>
- setMetadata(): Promise<void>
- sha3_512(): Promise<string>
- treeData(calculateRoot: boolean, fastCalculation?: boolean): Promise<{ height: number; leavesNumber: number; root: Field }>
Parameters
calculateRoot: boolean
fastCalculation: boolean = true
Returns Promise<{ height: number; leavesNumber: number; root: Field }>
- fillFields(bytes: Uint8Array): Field[]
Parameters
Returns Field[]