TRAIT DataGate API
  1. Schemas
TRAIT DataGate API
  • Intro
  • History
    • Blocks
    • Transactions
    • Events
  • State
    • Info of on-chain entities
    • Raw single values of blockchain storage
    • Raw collections of blockchain storage
  • Tokens
    • Balances of tokens
    • Transfers of tokens
  • Submit new transaction
    • Validate transfer of token TRAIT
    • Validate transfer of fungible tokens
    • Validate transfer of nft tokens
    • Validate clearing transaction of an AppAgent
    • Build info for new transaction
    • Submit transaction
    • Get transaction status
  • Schemas
    • Schemas
      • AppAgentInfo
      • Block
      • BlockReceipt
      • BlockTag
      • BlockchainAddress
      • BlockchainAddressType
      • BlockchainEntitiesInfo
      • BlockchainValidationError
      • BuildInfoContext
      • CTActionOriginAddressName
      • CTActionOriginAppAgentAddress
      • CTActionOriginAppAgentId
      • CTActionOriginNamedAddress
      • CTActionOriginTransactionalAddress
      • CTActionOriginTransactionalAddressId
      • ClearingTransactionAction
      • ClearingTransactionAtomic
      • ClearingTransactionExaminationInfo
      • ClearingTransactionPayload
      • ClearingTransactionRejectionCode
      • ClearingTransactionRejectionDetails
      • Event
      • EventNonTx
      • ExaminedTransferFungible
      • EventReceiptInherentTx
      • ExaminedTransferNative
      • EventReceiptNonTx
      • ExaminedTransferNft
      • EventReceiptSignedTx
      • FilterBlockReceipt
      • EventReceiptUnsignedTx
      • FilterBlockchainAddress
      • EventTx
      • FilterBlockchainEntityId
      • FilterEvent
      • FilterTransferAddress
      • FilterTransferAmount
      • FilterTransferDetailsFungible
      • FilterTransferDetailsNative
      • FilterTransferDetailsNft
      • FilterTokenIdFungible
      • FilterTxCall
      • FilterTokenIdNft
      • FilterTxReceipt
      • FreeTransferRejectionCode
      • FungibleTokenInfo
      • FungibleTokenStatus
      • HTTPValidationError
      • HistoryBlocksPresentation
      • HistoryBlocksRequest
      • HistoryBlocksResponse
      • FreeTransferRejectionInfo
      • HistoryEventsPresentation
      • HistoryEventsRequest
      • HistoryEventsResponse
      • FungibleTransferRejectionCode
      • HistoryTransactionsPresentation
      • FungibleTransferRejectionInfo
      • HistoryTransactionsRequest
      • HistoryTransactionsResponse
      • NFTItemFullId
      • NativeTokenInfo
      • NextPageRequest
      • NftCollectionInfo
      • NftItemInfo
      • RangeBlockIndex
      • RangeBlockTimestamp
      • RangeTransactionalAddressId
      • ResponseBlockId
      • ResponseMetadata
      • NativeTransferRejectionCode
      • ResponseMetadataPaged
      • NativeTransferRejectionInfo
      • ResponsePaginationData
      • RuntimeVersion
      • SortingOrder
      • StateEntityInfoRequest
      • NftTransferRejectionCode
      • StateEntityInfoResponse
      • NftTransferRejectionInfo
      • StateStorageMapPresentation
      • PlayerTransferFungibleExaminationInfo
      • StateStorageMapRequest
      • PlayerTransferNativeExaminationInfo
      • StateStorageMapResponse
      • PlayerTransferNftExaminationInfo
      • StateStorageValueRequest
      • StateStorageValueResponse
      • StorageMapFilter
      • StorageMapRecord
      • StorageValueFilter
      • StorageValueRecord
      • TokenBalanceFungible
      • TokenBalanceNative
      • TokenBalanceNft
      • TokenTransfer
      • TokenTransferFungible
      • TokenTransferNative
      • TokenTransferNft
      • TokenType
      • TokensBalancesPresentation
      • TokensBalancesRequest
      • TokensBalancesResponse
      • TokensTransfersPresentation
      • TokensTransfersRequest
      • TokensTransfersResponse
      • Transaction
      • TransferChannelRejectionCode
      • TransferFeeFree
      • TransferFeeNativeTokens
      • TransferType
      • TransactionReceiptInherent
      • TxBuildInfo
      • TransactionReceiptSigned
      • TxBuildInfoRequest
      • TransactionReceiptUnsigned
      • TxBuildInfoResponse
      • TxExamineClearingTransactionRequest
      • TransferChannelRejectionInfo
      • TxExamineClearingTransactionResponse
      • TxExaminePlayerTransferFungibleRequest
      • TxExaminePlayerTransferFungibleResponse
      • TxExaminePlayerTransferNativeRequest
      • TxExaminePlayerTransferNativeResponse
      • TxExaminePlayerTransferNftRequest
      • TxExaminePlayerTransferNftResponse
      • TxStatusCode
      • TxStatusInfo
      • TxStatusRequest
      • TxStatusResponse
      • TxSubmissionRejectionCode
      • TxSubmissionRejectionDetails
      • TxSubmissionSuccess
      • TxSubmitRequest
      • TxSubmitResponse
      • ValidationError
      • TxSubmissionInfo
  1. Schemas

StateEntityInfoResponse(StateEntityInfoResponse)

Response schema for the endpoint /state/entity_info.

{
    "metadata": {
        "request_context": {
            "block_hash": "0xab8006019066f080402ab43da043127b930ef0ffb3349a333222d67c0f542338",
            "block_index": 29702,
            "block_timestamp": 1727581488000
        },
        "blockchain_head": {
            "block_hash": "0xab8006019066f080402ab43da043127b930ef0ffb3349a333222d67c0f542338",
            "block_index": 29702,
            "block_timestamp": 1727581488000
        }
    },
    "data": {
        "app_agents": [
            {
                "app_agent_id": 1017,
                "app_agent_address": {
                    "address": "ttrnYjkipbBQVVvpcx349CsAvbQvF35JrXHosmbAULSZa7Uyv",
                    "account_id": "0xf903000001d19712b1c73aa01de7b7764c220ed3d23403f9ef8052e5d2fcc16e",
                    "address_type": "app_agent",
                    "app_agent_id": 1017,
                    "ta_id": null,
                    "address_name": null
                },
                "app_agent_owner": {
                    "address": "ttmcLgs3b7tegED6wRMFAA6WLYWhYeCL1TgHv6u4VDWptiz8L",
                    "account_id": "0x140cd0b779f4418ec25a5d97572e29ead9afcc4112974c923ee796702338830b",
                    "address_type": "regular",
                    "app_agent_id": null,
                    "ta_id": null,
                    "address_name": null
                },
                "metadata": "https://trait-wallet-demo-account.trait.tech/game-c/app-agent-c/app-agent-c.json"
            },
            {
                "app_agent_id": 1033,
                "app_agent_address": {
                    "address": "ttmMsYRqsnrKY5DNTZY3rBCUHq7s191wKvWQXnrfb7xeADJGC",
                    "account_id": "0x0904000001d5006fd044601bad51baedee11be3f4247c688310084e17d778170",
                    "address_type": "app_agent",
                    "app_agent_id": 1033,
                    "ta_id": null,
                    "address_name": null
                },
                "app_agent_owner": {
                    "address": "ttqUHa4SJ5JE5mCcx9PkWNo4AkDAgyqeBLoaHxdCeY5rsq8E5",
                    "account_id": "0xbed94ac6f0fdf9a8b24c3a16ae861eb4f776d819f6c6316a0ae866c9238d2078",
                    "address_type": "regular",
                    "app_agent_id": null,
                    "ta_id": null,
                    "address_name": null
                },
                "metadata": "http://trait-wallet-demo-account-staging.trait.tech/game-a/app-agent-a/app-agent-a.json"
            }
        ],
        "fungible_tokens": [
            {
                "fungible_token_id": 32,
                "fungible_token_manager": {
                    "address": "ttmMsYRqsnrKY5DNTZY3rBCUHq7s191wKvWQXnrfb7xeADJGC",
                    "account_id": "0x0904000001d5006fd044601bad51baedee11be3f4247c688310084e17d778170",
                    "address_type": "app_agent",
                    "app_agent_id": 1033,
                    "ta_id": null,
                    "address_name": null
                },
                "supply": 1000000000000000,
                "min_amount": 1,
                "accounts": 3,
                "status": "Live",
                "metadata": "http://trait-wallet-demo-account-staging.trait.tech/game-a/fungible-a-a/fungible-a-a.json"
            }
        ],
        "nft_collections": [
            {
                "nft_collection_id": 17,
                "nft_collection_manager": {
                    "address": "ttrnYjkipbBQVVvpcx349CsAvbQvF35JrXHosmbAULSZa7Uyv",
                    "account_id": "0xf903000001d19712b1c73aa01de7b7764c220ed3d23403f9ef8052e5d2fcc16e",
                    "address_type": "app_agent",
                    "app_agent_id": 1017,
                    "ta_id": null,
                    "address_name": null
                },
                "manager_deposit": 1011130100000000,
                "items": 10,
                "metadata": "https://trait-wallet-demo-account.trait.tech/game-c/nft-collection-c-d/nft-collection-c-d/nft-collection-c-d.json"
            }
        ],
        "nft_items": [
            {
                "nft_collection_id": 17,
                "nft_item_id": 754266,
                "metadata": "https://trait-wallet-demo-account.trait.tech/game-c/nft-collection-c-d/nft-token-c-d-j/nft-token-c-d-j.json"
            }
        ],
        "native_token": {
            "name": "TRAIT",
            "symbol": "TRAIT",
            "decimals": 12,
            "min_amount": 1000000000000
        }
    }
}
Built with