JSON-RPC类JsonRpc函数arrayToHex函数arrayToHexarrayToHex(data: Uint8Array): string定义于eosjs-jsonrpc.ts:11参数:名称类型dataUint8Array返回:stringJsonRpc实现接口AuthorityProviderAbiProvider构造函数new JsonRpc(endpoint: string, args?: object): JsonRpc定义于eosjs-jsonrpc.ts:22参数:endpoint:stringDefault value args:objectfetch:浏览器:保留null或undefinednode:提供实现名称类型(可选的)fetchfunction返回:JsonRpc属性endpointendpoint:string定义于eosjs-jsonrpc.ts:21fetchBuiltinfetchBuiltin:function定义于eosjs-jsonrpc.ts:22类型声明(input?: Request | string, init?: RequestInit): Promise<Response>参数:名称类型(可选的)inputRequest | string(可选的)initRequestInit返回:Promise<Response>方法db_size_getdb_size_get(): Promise<any>定义于eosjs-jsonrpc.ts:182原始调用/v1/db_size/get返回:Promise<any>fetchfetch(path: string, body: any): Promise<any>定义于eosjs-jsonrpc.ts:42发布body到endpoint + path,在可用时在RpcError中抛出详细的错误信息。参数:名称类型pathstringbodyany返回:Promise<any>getRawAbigetRawAbi(accountName: string): Promise<BinaryAbi>定义于eosjs-jsonrpc.ts:129调用/v1/chain/get_raw_code_and_abi并提取不需要的原始wasm代码。参数:名称类型accountNamestring返回:Promise<BinaryAbi>getRequiredKeysgetRequiredKeys(args: AuthorityProviderArgs): Promise<string[]>定义于eosjs-jsonrpc.ts:164获取满足transaction权限所需的availableKeys子集,实现AuthorityProvider。参数:名称类型argsAuthorityProviderArgs返回:Promise<string[]>get_abiget_abi(account_name: string): Promise<GetAbiResult>定义于eosjs-jsonrpc.ts:67原始调用/v1/chain/get_abi参数:名称类型account_namestring返回:Promise<GetAbiResult>get_accountget_account(account_name: string): Promise<any>定义于eosjs-jsonrpc.ts:73原始调用/v1/chain/get_account参数:名称类型account_namestring返回:Promise<any>get_blockget_block(block_num_or_id: number | string): Promise<GetBlockResult>定义于eosjs-jsonrpc.ts:85原始调用/v1/chain/get_block参数:名称类型block_num_or_idnumber | string返回:Promise<GetBlockResult>get_block_header_stateget_block_header_state(block_num_or_id: number | string): Promise<any>定义于eosjs-jsonrpc.ts:79原始调用/v1/chain/get_block_header_state参数:名称类型block_num_or_idnumber | string返回:Promise<any>get_codeget_code(account_name: string): Promise<GetCodeResult>定义于eosjs-jsonrpc.ts:91原始调用/v1/chain/get_code参数:名称类型account_namestring返回:Promise<GetCodeResult>get_currency_balanceget_currency_balance(code: string, account: string, symbol?: string): Promise<any>定义于eosjs-jsonrpc.ts:96原始调用/v1/chain/get_currency_balance参数:名称类型默认值codestring-accountstring-Default value symbolstringnull返回:Promise<any>get_currency_statsget_currency_stats(code: string, symbol: string): Promise<any>定义于eosjs-jsonrpc.ts:101原始调用/v1/chain/get_currency_stats参数:名称类型codestringsymbolstring返回:Promise<any>get_infoget_info(): Promise<GetInfoResult>定义于eosjs-jsonrpc.ts:106原始调用/v1/chain/get_info返回:Promise<GetInfoResult>get_producer_scheduleget_producer_schedule(): Promise<any>定义于eosjs-jsonrpc.ts:111原始调用/v1/chain/get_producer_schedule返回:Promise<any>get_producersget_producers(json?: boolean, lower_bound?: string, limit?: number): Promise<any>定义于eosjs-jsonrpc.ts:117原始调用/v1/chain/get_producers参数:名称类型默认值Default value jsonbooleantrueDefault value lower_boundstring"“Default value limitnumber50返回:Promise<any>get_raw_code_and_abiget_raw_code_and_abi(account_name: string): Promise<GetRawCodeAndAbiResult>定义于eosjs-jsonrpc.ts:123原始调用/v1/chain/get_raw_code_and_abi参数:名称类型account_namestring返回:Promise<GetRawCodeAndAbiResult>get_table_rowsget_table_rows(__namedParameters: object): Promise<any>定义于eosjs-jsonrpc.ts:136原始调用/v1/chain/get_table_rows参数:__namedParameters:object名称类型默认值codeany-index_positionany1jsonanytruekey_typeany"“limitany10lower_boundany"“scopeany-tableany-table_keyany"“upper_boundany"“返回:Promise<any>history_get_actionshistory_get_actions(account_name: string, pos?: number, offset?: number): Promise<any>定义于eosjs-jsonrpc.ts:186原始调用/v1/history/get_actions参数:名称类型默认值account_namestring-Default value posnumbernullDefault value offsetnumbernull返回:Promise<any>history_get_controlled_accountshistory_get_controlled_accounts(controlling_account: string): Promise<any>定义于eosjs-jsonrpc.ts:204原始调用/v1/history/get_controlled_accounts参数:名称类型controlling_accountstring返回:Promise<any>history_get_key_accountshistory_get_key_accounts(public_key: string): Promise<any>定义于eosjs-jsonrpc.ts:198原始调用/v1/history/get_key_accounts参数:名称类型public_keystring返回:Promise<any>history_get_transactionhistory_get_transaction(id: string, block_num_hint?: number): Promise<any>定义于eosjs-jsonrpc.ts:192原始调用/v1/history/get_transaction参数:名称类型默认值idUint8Array-Default value block_num_hintnumbernull返回:Promise<any>push_transactionpush_transaction(__namedParameters: object): Promise<any>定义于eosjs-jsonrpc.ts:172推送序列化交易。参数:__namedParameters:object名称类型serializedTransactionUint8Arraysignaturesstring[]返回:Promise<any>上一篇:JS-Sig