PHP WebShell
Текущая директория: /usr/lib/node_modules/bitgo/node_modules/@near-js/accounts/lib/commonjs/local-view-execution
Просмотр файла: index.d.ts
import { BlockReference } from '@near-js/types';
import { FunctionCallOptions } from '../interface';
import { IntoConnection } from '../interface';
interface ViewFunctionCallOptions extends FunctionCallOptions {
blockQuery?: BlockReference;
}
export declare class LocalViewExecution {
private readonly connection;
private readonly storage;
constructor(connection: IntoConnection);
private fetchContractCode;
private fetchContractState;
private fetch;
private loadOrFetch;
/**
* Calls a view function on a contract, fetching the contract code and state if needed.
* @param options Options for calling the view function.
* @param options.contractId The contract account ID.
* @param options.methodName The name of the view function to call.
* @param options.args The arguments to pass to the view function.
* @param options.blockQuery The block query options.
* @returns {Promise<any>} - A promise that resolves to the result of the view function.
*/
viewFunction({ contractId, methodName, args, blockQuery }: ViewFunctionCallOptions): Promise<any>;
}
export {};
//# sourceMappingURL=index.d.ts.mapВыполнить команду
Для локальной разработки. Не используйте в интернете!