WAX Unity Web3 Suite
Hyperion
Hyperion
  • Getting Started
  • Installation
    • WebGL Installation
  • Examples
    • AccountsClient
      • AccountsClientExample1
      • AccountsClientExample2
      • AccountsClientExample3
    • ChainClientExample
    • HistoryClientExample
    • StatsClientExample
    • SystemClientExample
  • API Docs
    • Clients
      • AccountsClient
      • ChainClient
      • HistoryClient
      • StatsClient
      • StatusClient
    • Models
      • Abi
      • Account
      • Account2
      • AccountRamDelta
      • Act
      • Action
      • Action2
      • Action3
      • Action4
      • Action5
      • Action6
      • Action7
      • ActionTrace
      • ActivatedProtocolFeature
      • ActivatedProtocolFeatures
      • ActiveSchedule
      • ApiException
      • AuthSequence
      • Authorization
      • Authorization2
      • BlockrootMerkle
      • Body
      • ClientExtensions
      • Cpu
      • CpuLimit
      • Data
      • Delta
      • Event
      • ExtendedAct
      • ExtendedLink
      • Features
      • Field
      • GetAbiResponse
      • Header
      • Health
      • Link
      • Net
      • NetLimit
      • PendingSchedule
      • Percentiles
      • Permission
      • Permission2
      • Producer
      • Producer2
      • ProducerRow
      • Proposal
      • ProvidedApproval
      • Receipt
      • RequestedApproval
      • RequiredAuth
      • RicardianClaus
      • Schedule
      • ServiceData
      • SimpleAction
      • Specification
      • Stats
      • StdDeviationBounds
      • Streaming
      • Struct
      • SubjectiveCpuBillLimit
      • Table
      • TableByScopeRow
      • Tables
      • Token
      • Total
      • TotalResources
      • Transaction
      • Transaction2
      • Transaction3
      • Trx
      • Voter
      • VoterInfo
    • Responses
      • GetAccountResponse
      • GetAccountResponse2
      • GetActionUsageResponse
      • GetActionsResponse
      • GetActionsResponse2
      • GetActivatedProtocolFeaturesBody
      • GetActivatedProtocolFeaturesResponse
      • GetApiSnapshotResponse
      • GetBlockHeaderStateResponse
      • GetBlockResponse
      • GetBlockResponse2
      • GetCodeResponse
      • GetControlledAccountsResponse
      • GetCreatedAccountsResponse
      • GetCreatorResponse
      • GetDeltasResponse
      • GetHealthResponse
      • GetInfoResponse
      • GetKeyAccountsResponse
      • GetKeyAccountsWithPermissionsResponse
      • GetLinksResponse
      • GetMissedBlocksResponse
      • GetProducersResponse
      • GetProposalsResponse
      • GetResourceUsageResponse
      • GetScheduleResponse
      • GetTableByScopeResponse
      • GetTokensResponse
      • GetTransactionResponse
      • GetVotersResponse
Powered by GitBook
On this page
  • Summary
  • Members
Edit on GitHub
  1. API Docs
  2. Clients

ChainClient

class HyperionApiClient::Clients::ChainClient
  : public ClientExtensions

Summary

Members
Descriptions

Returns an object containing rows from the specified table.

Convert JSON object to binary.

Retrieves the ABI for a contract based on its account name.

Returns an object containing various details about a specific account on the blockchain.

Retreives the activated protocol features for producer node.

Returns an object containing various details about a specific block on the blockchain.

Retrieves the block header state.

Retrieves contract code.

Retrieves the current balance.

Retrieves currency stats.

Returns an object containing various details about the blockchain.

Retrieves producers list.

Retrieves raw ABI for a contract based on account name.

Retrieves raw code and ABI for a contract based on account name.

Retrieves the scheduled transaction.

Retrieves table scope.

Returns an object containing rows from the specified table.

This method expects a transaction in JSON format and will attempt to apply it to the blockchain.

This method expects a transaction in JSON format and will attempt to apply it to the blockchain.

This method expects a transaction in JSON format and will attempt to apply it to the blockchain.

Members

Returns an object containing rows from the specified table.

Parameters

  • cancellationToken A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Default Response

Exceptions

  • ApiException A server side error occurred.

Convert JSON object to binary.

Parameters

  • cancellationToken A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Default Response

Exceptions

  • ApiException A server side error occurred.

Retrieves the ABI for a contract based on its account name.

Parameters

  • cancellationToken A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Default Response

Exceptions

  • ApiException A server side error occurred.

Returns an object containing various details about a specific account on the blockchain.

Parameters

  • cancellationToken A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Default Response

Exceptions

  • ApiException A server side error occurred.

Retreives the activated protocol features for producer node.

Parameters

  • cancellationToken A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Parameters

  • lower_bound Lower bound

  • upper_bound Upper bound

  • limit The limit, default is 10

  • search_by_block_num Flag to indicate it is has to search by block number

  • reverse Flag to indicate it has to search in reverse

Returns

Default Response

Exceptions

  • ApiException A server side error occurred.

Returns an object containing various details about a specific block on the blockchain.

Parameters

  • cancellationToken A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Parameters

  • block_num_or_id Provide a block number or a block id

Returns

Default Response

Exceptions

  • ApiException A server side error occurred.

Retrieves the block header state.

Parameters

  • cancellationToken A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Parameters

  • blockNumOrId Provide a block_number or a block_id

Returns

Default Response

Exceptions

  • ApiException A server side error occurred.

Retrieves contract code.

Parameters

  • cancellationToken A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Parameters

  • code_as_wasm This must be 1 (true)

Returns

Default Response

Exceptions

  • ApiException A server side error occurred.

Retrieves the current balance.

Parameters

  • cancellationToken A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Parameters

  • symbol A symbol composed of capital letters between 1-7.

Returns

Default Response

Exceptions

  • ApiException A server side error occurred.

Retrieves currency stats.

Parameters

  • cancellationToken A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Parameters

  • code contract name

  • symbol token symbol

Returns

Default Response

Exceptions

  • ApiException A server side error occurred.

Returns an object containing various details about the blockchain.

Parameters

  • cancellationToken A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Default Response

Exceptions

  • ApiException A server side error occurred.

Retrieves producers list.

Parameters

  • cancellationToken A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Parameters

  • limit total number of producers to retrieve

  • lower_bound In conjunction with limit can be used to paginate through the results. For example, limit=10 and lower_bound=10 would be page 2

  • json return result in JSON format

Returns

Default Response

Exceptions

  • ApiException A server side error occurred.

Retrieves raw ABI for a contract based on account name.

Parameters

  • cancellationToken A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Default Response

Exceptions

  • ApiException A server side error occurred.

Retrieves raw code and ABI for a contract based on account name.

Parameters

  • cancellationToken A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Default Response

Exceptions

  • ApiException A server side error occurred.

Retrieves the scheduled transaction.

Parameters

  • cancellationToken A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Parameters

  • lower_bound Date/time string in the format YYYY-MM-DDTHH:MM:SS.sss

  • limit The maximum number of transactions to return

  • json true/false whether the packed transaction is converted to json

Returns

Default Response

Exceptions

  • ApiException A server side error occurred.

Retrieves table scope.

Parameters

  • cancellationToken A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Parameters

  • code name of the contract to return table data for

  • table Filter results by table

  • lower_bound Filters results to return the first element that is not less than provided value in set

  • upper_bound Filters results to return the first element that is greater than provided value in set

  • limit Limit number of results returned.

  • reverse Reverse the order of returned results

Returns

Default Response

Exceptions

  • ApiException A server side error occurred.

Returns an object containing rows from the specified table.

Parameters

  • cancellationToken A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Parameters

  • code The name of the smart contract that controls the provided table

  • table The name of the table to query

  • scope The account to which this data belongs

  • index_position Position of the index used, accepted parameters primary, secondary, tertiary, fourth, fifth, sixth, seventh, eighth, ninth , tenth

  • key_type Type of key specified by index_position (for example - uint64_t or name)

Returns

Default Response

Exceptions

  • ApiException A server side error occurred.

This method expects a transaction in JSON format and will attempt to apply it to the blockchain.

Parameters

  • cancellationToken A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Default Response

Exceptions

  • ApiException A server side error occurred.

This method expects a transaction in JSON format and will attempt to apply it to the blockchain.

Parameters

  • cancellationToken A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Default Response

Exceptions

  • ApiException A server side error occurred.

This method expects a transaction in JSON format and will attempt to apply it to the blockchain.

Parameters

  • cancellationToken A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Default Response

Exceptions

  • ApiException A server side error occurred.

PreviousAccountsClientNextHistoryClient

Last updated 2 years ago

public string

public (HttpClient httpClient)

public async Task (string code, string action, string binargs, CancellationToken cancellationToken) = default

public async Task (string binargs, CancellationToken cancellationToken) = default

public async Task< GetAbiResponse > (string accountName, CancellationToken cancellationToken) = default

public async Task< GetAccountResponse2 > (string accountName, CancellationToken cancellationToken) = default

public async Task< GetActivatedProtocolFeaturesResponse > (int? lowerBound, int? upperBound, int? limit, bool? searchByBlockNum, bool? reverse, CancellationToken cancellationToken) = default

public async Task< GetBlockResponse2 > (string blockNumOrId, CancellationToken cancellationToken) = default

public async Task< GetBlockHeaderStateResponse > (string blockNumOrId, CancellationToken cancellationToken) = default

public async Task< GetCodeResponse > (string accountName, bool codeAsWasm, CancellationToken cancellationToken) = default

public async Task< List< string > > (string code, string account, string symbol, CancellationToken cancellationToken) = default

public async Task< string > (string code, string symbol, CancellationToken cancellationToken) = default

public async Task< GetInfoResponse > (CancellationToken cancellationToken) = default

public async Task< GetProducersResponse > (string limit, string lowerBound, bool? json, CancellationToken cancellationToken) = default

public async Task (string accountName, CancellationToken cancellationToken) = default

public async Task (string accountName, CancellationToken cancellationToken) = default

public async Task (string lowerBound, int? limit, bool? json, CancellationToken cancellationToken) = default

public async Task< GetTableByScopeResponse > (string code, string table, string lowerBound, string upperBound, int? limit, bool? reverse, CancellationToken cancellationToken) = default

public async Task (string code, string table, string scope, string indexPosition, string keyType, string encodeType, string upperBound, string lowerBound, CancellationToken cancellationToken) = default

public async Task (object body, CancellationToken cancellationToken) = default

public async Task (IEnumerable< object > body, CancellationToken cancellationToken) = default

public async Task (object body, CancellationToken cancellationToken) = default

private readonly HttpClient

public string

public (HttpClient httpClient)

public async Task (string code, string action, string binargs, CancellationToken cancellationToken) = default

public async Task (string binargs, CancellationToken cancellationToken) = default

public async Task< GetAbiResponse > (string accountName, CancellationToken cancellationToken) = default

public async Task< GetAccountResponse2 > (string accountName, CancellationToken cancellationToken) = default

public async Task< GetActivatedProtocolFeaturesResponse > (int? lowerBound, int? upperBound, int? limit, bool? searchByBlockNum, bool? reverse, CancellationToken cancellationToken) = default

public async Task< GetBlockResponse2 > (string blockNumOrId, CancellationToken cancellationToken) = default

public async Task< GetBlockHeaderStateResponse > (string blockNumOrId, CancellationToken cancellationToken) = default

public async Task< GetCodeResponse > (string accountName, bool codeAsWasm, CancellationToken cancellationToken) = default

public async Task< List< string > > (string code, string account, string symbol, CancellationToken cancellationToken) = default

public async Task< string > (string code, string symbol, CancellationToken cancellationToken) = default

public async Task< GetInfoResponse > (CancellationToken cancellationToken) = default

public async Task< GetProducersResponse > (string limit, string lowerBound, bool? json, CancellationToken cancellationToken) = default

public async Task (string accountName, CancellationToken cancellationToken) = default

public async Task (string accountName, CancellationToken cancellationToken) = default

public async Task (string lowerBound, int? limit, bool? json, CancellationToken cancellationToken) = default

public async Task< GetTableByScopeResponse > (string code, string table, string lowerBound, string upperBound, int? limit, bool? reverse, CancellationToken cancellationToken) = default

public async Task (string code, string table, string scope, string indexPosition, string keyType, string encodeType, string upperBound, string lowerBound, CancellationToken cancellationToken) = default

public async Task (object body, CancellationToken cancellationToken) = default

public async Task (IEnumerable< object > body, CancellationToken cancellationToken) = default

public async Task (object body, CancellationToken cancellationToken) = default

private readonly HttpClient

BaseUrl
ChainClient
AbiBinToJsonAsync
AbiJsonToBinAsync
GetAbiAsync
GetAccountAsync
GetActivatedProtocolFeaturesAsync
GetBlockAsync
GetBlockHeaderStateAsync
GetCodeAsync
GetCurrencyBalanceAsync
GetCurrencyStatsAsync
GetInfoAsync
GetProducersAsync
GetRawAbiAsync
GetRawCodeAndAbiAsync
GetScheduledTransactionAsync
GetTableByScopeAsync
GetTableRowsAsync
PushTransactionAsync
PushTransactionsAsync
SendTransactionAsync
_httpClient
BaseUrl
ChainClient
AbiBinToJsonAsync
AbiJsonToBinAsync
GetAbiAsync
GetAccountAsync
GetActivatedProtocolFeaturesAsync
GetBlockAsync
GetBlockHeaderStateAsync
GetCodeAsync
GetCurrencyBalanceAsync
GetCurrencyStatsAsync
GetInfoAsync
GetProducersAsync
GetRawAbiAsync
GetRawCodeAndAbiAsync
GetScheduledTransactionAsync
GetTableByScopeAsync
GetTableRowsAsync
PushTransactionAsync
PushTransactionsAsync
SendTransactionAsync
_httpClient