Data Types
This section provides a comprehensive reference for all the custom data structures, input parameters, and response objects used throughout the OCAP Client API. Understanding these types is essential for effectively interacting with the OCAP blockchain.
Core Types#
These are fundamental data structures used across various API calls.
Any#
A generic container for protobuf messages, allowing for flexible data structures.
Multisig#
Represents a multi-signature, often used in transactions requiring multiple approvals.
PageInfo#
Contains pagination details for list-based query responses.
StateContext#
Provides context about the creation and last modification of a state object.
Wallet Objects#
These types define the structure of wallets used for signing transactions.
WalletObject#
WalletTypeObject#
WalletType#
Input & Filter Types#
These objects are used to provide parameters and filters for GraphQL queries.
General Filter Inputs#
Pagination Inputs#
PageInput#
PageOrderInput#
Request-Specific Inputs#
These objects are used as parameters for specific query and mutation methods.
State Objects#
These types represent the state of various entities on the blockchain, such as accounts, assets, and tokens.
AccountState#
Represents the state of a user account.
AssetState#
Represents the state of a non-fungible asset (NFT).
AssetFactoryState#
Represents the state of an asset factory, which is used to mint new assets.
DelegateState#
Represents the state of a delegation, where one account authorizes another to perform actions on its behalf.
StakeState#
Represents the state of a stake, which can involve tokens or assets.
TokenState#
Represents the state of a fungible token.
TokenFactoryState#
Represents the state of a token factory, used for minting and burning tokens.
Transaction Payloads (ITX)#
These types define the itx (inner transaction) object for various transaction types.
AccountMigrateTx#
AcquireAssetV2Tx#
CreateAssetTx#
DelegateTx#
ExchangeTx#
StakeTx#
TransferTx#
Response Wrappers#
These types are the top-level objects returned by API queries, containing a status code and the requested data.