Properties
arweave
arweave: Pick<default, "ar" | "wallets" | "utils" | "crypto">
contract
contract: { id: string; owner: string }
contracts
contracts: { readContractState: any; viewContractState: any }
Type declaration
-
readContractState: function
- readContractState(contractId: string): Promise<any>
-
Parameters
Returns Promise<any>
-
viewContractState: function
- viewContractState(contractId: string, input: any): Promise<any>
-
Parameters
-
contractId: string
-
input: any
Returns Promise<any>
transaction
transaction: Transaction
unsafeClient
unsafeClient: default
This class is be exposed as a global for contracts as 'SmartWeave' and provides an API for getting further information or using utility and crypto functions from inside the contracts execution.
It provides an api:
and access to some of the arweave utils:
as well as access to the potentially non-deterministic full client: