Read From Blockchain
Documentation for Unreal SDK API for reading from the blockchain with the Sequence infrastructure stack for web3 gaming.
Set Chain by Id
By default your Chain Id is defined in your SequenceConfig.ini file. Use this function to change it during runtime.
Parameters
Parameters
NewChainId (int64)
The new chain id, such as 421614 for Arbitrum Sepolia.
Get Native Token Balance
Use the Indexer API to retrieve the Ether balance for a specified wallet address, such as the local user’s address.
Parameters
Parameters
Wallet Address (FString)
The wallet address from which you want to retrieve data.
Return Types
Return Types
Balance (Integer64)
The amount of Ether owned by the specified wallet address.
Get Token Balances
Retrieve the user’s token balances for ERC20, ERC721, and ERC1155 tokens. This will return an array of all tokens owned by the user.
Parameters
Parameters
Contract Address (FString)
An ERC20, ERC721 or ERC1155 contract address from which you want to retrieve data.
Wallet Address (FString)
The wallet address which owns tokens on the specified contract address.
Include Metadata (Boolean)
Enable this flag if you want to receive token metadata in the response.
Return Types
Return Types
Balances (SeqGetTokenBalancesReturn Struct)
Contains a SeqTokenBalance array that lists all token IDs owned by the specified wallet address. ” + “If ‘Include Metadata’ is set to true, token metadata is also included.
Get Token Supplies
Retrieve the token supplies for an ERC20, ERC721, or ERC1155 token.
Parameters
Parameters
Contract Address (FString)
An ERC20, ERC721 or ERC1155 contract address from which you want to retrieve token supplies.
Include Metadata (Boolean)
Enable this flag if you want to receive token metadata in the response.
Return Types
Return Types
Supplies (SeqGetTokenSuppliesReturn Struct)
Contains a SeqTokenSupply array that lists all token IDs available on the specified contract address. ” + “Each element contains a ‘supply’ value. If ‘Include Metadata’ is set to true, token metadata is also included.
Get Token Supplies Map
Retrieve a collection of token supplies for ERC20, ERC721, or ERC1155 tokens.
Parameters
Parameters
Token Map (FString->FSeqTokenList Map))
A map of token IDs that you want to retrieve data from.
Include Metadata (Boolean)
Enable this flag if you want to receive token metadata in the response.
Return Types
Return Types
Supplies (SeqGetTokenSuppliesMapReturn Struct)
Contains a SeqTokenSupply array for each specified ID in the ‘Token Map’. ” + “Each element contains a ‘supply’ value. If ‘Include Metadata’ is set to true, token metadata is also included.
Get Transaction History
Retrieve the transaction history for a wallet- or token address. For example, here we get all transactions for the current user.
Parameters
Parameters
Account Address (FString)
Specify a wallet address if you want to receive the history for a specific user.
Contract Address (FString)
Specify an ERC20, ERC721 or ERC1155 contract address if you want to receive the history for a specific token.
Include Metadata (Boolean)
Enable this flag if you want to receive token metadata in the response.
Return Types
Return Types
Transaction History (SeqGetTransactionHistoryReturn Struct)
Contains a SeqTransaction array that lists all transactions.
Runtime Status
Retrieve the runtime status of the current chain. For example, call this function to get the latest block number.
Return Types
Return Types
Status (SeqRuntimeStatus Struct)
Object containing all details related to the status of our Indexer.
Error (FString)
Error message containing more details on why the request failed.
Version
Retrieve the version of the current chain.
Return Types
Return Types
Web Rpc Version (FString)
TBD.
Schema Version (FString)
TBD.
Schema Hash (FString)
TBD.
App Version (FString)
TBD.
Error (FString)
Error message containing more details on why the request failed.
Ping
Ping the indexer to check if our endpoint is alive and ready.
Return Types
Return Types
Success (bool)
True if the indexer is running.
Error (FString)
Error message containing more details on why the request failed.