Class SmartContractQueriesController
Constructors
constructor
- new SmartContractQueriesController(
options: { abi?: IAbi; queryRunner: IQueryRunner },
): SmartContractQueriesController Parameters
- options: { abi?: IAbi; queryRunner: IQueryRunner }
Methods
createQuery
- createQuery(
options: {
arguments: any[];
caller?: string;
contract: string;
function: string;
value?: bigint;
},
): SmartContractQuery Parameters
- options: {
arguments: any[];
caller?: string;
contract: string;
function: string;
value?: bigint;
}
Returns SmartContractQuery
parseQueryResponse
- parseQueryResponse(response: SmartContractQueryResponse): any[]
Parameters
- response: SmartContractQueryResponse
Returns any[]
query
- query(
options: {
arguments: any[];
caller?: string;
contract: string;
function: string;
value?: bigint;
},
): Promise<any[]> Parameters
- options: {
arguments: any[];
caller?: string;
contract: string;
function: string;
value?: bigint;
}
Returns Promise<any[]>
runQuery
- runQuery(query: SmartContractQuery): Promise<SmartContractQueryResponse>
Parameters
- query: SmartContractQuery
Returns Promise<SmartContractQueryResponse>