@chroniclewtf/client
Classes​
Type Aliases​
CheckProofParams​
Ƭ CheckProofParams: Object
Parameters required for checking proof with ChronicleContractClient.
Type declaration​
| Name | Type |
|---|---|
leafIndex | bigint |
leafValue | Hash |
leftProof | Hash[] |
rightProof | Hash[] |
targetRoot | Hash |
Defined in​
packages/client/src/ChronicleContractClient.ts:31
Checkpoint​
Ƭ Checkpoint: Object
The checkpoint type returned by the server.
Type declaration​
| Name | Type |
|---|---|
blockNumber | bigint |
hash | Hash |
timestamp | Date |
treeSize | bigint |
Defined in​
packages/client/src/ChronicleServerClient.ts:37
ContractClientParams​
Ƭ ContractClientParams: Object
Parameters required to create a ChronicleContractClient instance.
Type declaration​
| Name | Type |
|---|---|
address | Address |
publicClient | PublicClient |
Defined in​
packages/client/src/ChronicleContractClient.ts:23
Proof​
Ƭ Proof: Object
The Merkle proof type for verifying provenance of an item on Chronicle.
Type declaration​
| Name | Type |
|---|---|
left | Hash[] |
right | Hash[] |
targetRoot | Hash |
Defined in​
packages/client/src/ChronicleServerClient.ts:46
ServerClientParams​
Ƭ ServerClientParams: Object
Parameters required to create a ChronicleServerClient instance.
Type declaration​
| Name | Type |
|---|---|
authorization? | string |
url? | string |
Defined in​
packages/client/src/ChronicleServerClient.ts:17
TreeState​
Ƭ TreeState: Object
The tree state returned by the server.
Type declaration​
| Name | Type |
|---|---|
checkpointedSpanEnd | bigint |
id | bigint |
innerNodeCount | bigint |
leafCount | bigint |
merklizedRoot | Hash |
merklizedSpanEnd | bigint |
Defined in​
packages/client/src/ChronicleServerClient.ts:25
Variables​
DEFAULT_API_URL​
• Const DEFAULT_API_URL: "https://api-server-development.up.railway.app/trpc"
The default API URL.
Defined in​
packages/client/src/ChronicleServerClient.ts:51
Functions​
getFreebeeAuth​
â–¸ getFreebeeAuth(): string
Returns​
string