Read From Blockchain
Documentation for Unreal SDK API for reading from the blockchain with the Sequence infrastructure stack for web3 gaming.
Set Chain Id
Select the Chain ID from which you want to retrieve user information. By default, this is set to Polygon.
Set Chain Id
Set Chain Id
Parameters
Parameters
New Chain Type (ENetwork Enum)
The type of chain you want to request information from. This includes options like Ethereum Mainnet or Sepolia. ” + “Make sure that you select the correct chain for your project from Sequence’s Builder.
Get Ether Balance
Use the Indexer API to retrieve the Ether balance for a specified wallet address, such as the local user’s address.
Get Ether Balance
Get Ether Balance
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.
Get Token Balances
Get Token Balances
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.
Get Token Supplies
Get Token Supplies
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.
Get Token Supplies Map
Get Token Supplies Map
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.
Get Transaction History
Get Transaction History
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.