Data models
Data Models (RPC DTOs) — All Models, Enriched
Parsed strictly from PhantasmaAPI.h (namespace phantasma::rpc). Comments shown only if meaningful. Where the context is clear, added short descriptions; otherwise left blank (no placeholders).
ABIEvent
Type: struct
Fields
value — Numeric as string type:
Int32name — String type:
StringreturnType type:
Stringdescription type:
String
ABIMethod
Type: struct
Fields
name — String type:
StringreturnType type:
Stringparameters type:
PHANTASMA_VECTOR<ABIParameter>
ABIParameter
Type: struct
Fields
name — String type:
Stringtype type:
String
Account
Type: struct
Fields
address — Account address (P2K...) type:
Stringname — String type:
Stringstakes — Stake info type:
Stakestake type:
Stringunclaimed — Unclaimed rewards/fees type:
Stringrelay type:
Stringvalidator type:
Stringstorage type:
Storagebalances — Per-token balances type:
PHANTASMA_VECTOR<Balance>txs type:
PHANTASMA_VECTOR<String>
AccountTransactions
Type: struct
Fields
address — Account address (P2K...) type:
Stringtxs type:
PHANTASMA_VECTOR<Transaction>
Archive
Type: struct
Fields
name — String type:
Stringhash — Hex-encoded hash type:
Stringtime — Unix timestamp (seconds) type:
UInt32size type:
UInt32encryption type:
StringblockCount type:
Int32missingBlocks type:
PHANTASMA_VECTOR<Int32>owners type:
PHANTASMA_VECTOR<String>
Auction
Type: struct
Fields
creatorAddress type:
StringchainAddress type:
StringstartDate — Auction start/end timestamp type:
UInt32endDate — Auction start/end timestamp type:
UInt32baseSymbol type:
StringquoteSymbol type:
StringtokenId — Identifier type:
Stringprice — Numeric as string type:
Stringrom type:
Stringram type:
String
Balance
Type: struct
Fields
chain — Chain name type:
Stringamount — Numeric as string type:
Stringsymbol — String type:
Stringdecimals — Token decimals type:
UInt32ids — NFT IDs owned for this symbol on the chain type:
PHANTASMA_VECTOR<String>
Block
Type: struct
Fields
hash — Hex-encoded hash type:
StringpreviousHash type:
Stringtimestamp — Unix timestamp (seconds) type:
UInt32height — Block or chain height type:
UInt32chainAddress type:
Stringprotocol type:
UInt32txs type:
PHANTASMA_VECTOR<Transaction>validatorAddress type:
Stringreward type:
Stringevents type:
PHANTASMA_VECTOR<Event>oracles type:
PHANTASMA_VECTOR<Oracle>
Chain
Type: struct
Fields
name — String type:
Stringaddress — Account address (P2K...) type:
Stringparent type:
Stringheight — Block or chain height type:
UInt32organization type:
Stringcontracts type:
PHANTASMA_VECTOR<String>dapps type:
PHANTASMA_VECTOR<String>
Channel
Type: struct
Fields
creatorAddress type:
StringtargetAddress type:
Stringname — String type:
Stringchain type:
StringcreationTime type:
UInt32symbol — String type:
Stringfee type:
Stringbalance — Numeric as string type:
Stringactive type:
boolindex type:
Int32
Contract
Type: struct
Fields
name — String type:
Stringaddress — Account address (P2K...) type:
Stringscript type:
Stringmethods type:
PHANTASMA_VECTOR<ABIMethod>events type:
PHANTASMA_VECTOR<ABIEvent>
Dapp
Type: struct
Fields
name — String type:
Stringaddress — Account address (P2K...) type:
Stringchain type:
String
Event
Type: struct
Fields
address — Account address (P2K...) type:
Stringcontract — String type:
Stringkind type:
Stringdata — Event payload (hex) type:
String
Governance
Type: struct
Fields
name — String type:
Stringvalue — Numeric as string type:
String
Interop
Type: struct
Fields
local type:
Stringexternal type:
String
Leaderboard
Type: struct
Fields
name — String type:
Stringrows type:
PHANTASMA_VECTOR<LeaderboardRow>
LeaderboardRow
Type: struct
Fields
address — Account address (P2K...) type:
Stringvalue — Numeric as string type:
String
Nexus
Type: struct
Fields
name — String type:
Stringplatforms — Interop platforms registered in the nexus type:
PHANTASMA_VECTOR<Platform>tokens — Deployed tokens type:
PHANTASMA_VECTOR<Token>chains — Chains in the nexus type:
PHANTASMA_VECTOR<Chain>governance type:
PHANTASMA_VECTOR<Governance>organizations type:
PHANTASMA_VECTOR<String>
Oracle
Type: struct
Fields
url type:
Stringcontent type:
String
Organization
Type: struct
Fields
id — Identifier type:
Stringname — String type:
Stringmembers type:
PHANTASMA_VECTOR<String>
Paginated
Type: struct
Fields
page type:
UInt32pageSize type:
UInt32total type:
UInt32totalPages type:
UInt32result type:
JSONValue
Peer
Type: struct
Fields
url type:
Stringversion type:
Stringflags type:
Stringfee type:
Stringpow type:
UInt32
PhantasmaError
Type: struct
Fields
message type:
String
Platform
Type: struct
Fields
platform type:
Stringchain type:
Stringfuel type:
Stringtokens type:
PHANTASMA_VECTOR<String>interop type:
PHANTASMA_VECTOR<Interop>
Receipt
Type: struct
Fields
nexus type:
Stringchannel type:
Stringindex type:
Stringtimestamp — Unix timestamp (seconds) type:
UInt32sender type:
Stringreceiver type:
Stringscript type:
String
Script
Type: struct
Fields
events type:
PHANTASMA_VECTOR<Event>result type:
Stringresults type:
PHANTASMA_VECTOR<String>oracles type:
PHANTASMA_VECTOR<Oracle>
SendRawTx
Type: struct
Fields
hash — Hex-encoded hash type:
Stringerror type:
String
Signature
Type: struct
Fields
Kind type:
StringData type:
String
Stake
Type: struct
Fields
amount — Numeric as string type:
Stringtime — Unix timestamp (seconds) type:
UInt32unclaimed type:
String
Storage
Type: struct
Fields
available type:
UInt32used type:
UInt32avatar type:
Stringarchives type:
PHANTASMA_VECTOR<Archive>
Swap
Type: struct
Fields
sourcePlatform — Cross-chain platform names type:
StringsourceChain type:
StringsourceHash type:
StringsourceAddress type:
StringdestinationPlatform type:
StringdestinationChain type:
StringdestinationHash type:
StringdestinationAddress type:
Stringsymbol — String type:
Stringvalue — Numeric as string type:
String
Token
Type: struct
Fields
symbol — String type:
Stringname — String type:
Stringdecimals — Token decimals type:
Int32currentSupply — Numeric as string type:
StringmaxSupply — Numeric as string type:
Stringaddress — Account address (P2K...) type:
Stringowner — Account address (P2K...) type:
Stringflags — Token flags (fungible, transferable, etc.) type:
Stringscript type:
Stringseries type:
PHANTASMA_VECTOR<TokenSeries>
TokenData
Type: struct
Fields
ID — Identifier type:
Stringseries type:
Stringmint type:
StringchainName type:
StringownerAddress type:
StringcreatorAddress type:
Stringram type:
Stringrom type:
Stringstatus type:
Stringinfusion type:
PHANTASMA_VECTOR<TokenProperty>properties type:
PHANTASMA_VECTOR<TokenProperty>
TokenProperty
Type: struct
Fields
Key type:
StringValue — Numeric as string type:
String
TokenSeries
Type: struct
Fields
seriesID — Identifier type:
UInt32currentSupply — Numeric as string type:
StringmaxSupply — Numeric as string type:
Stringmode type:
TokenSeriesModescript type:
Stringmethods type:
PHANTASMA_VECTOR<ABIMethod>
Transaction
Type: struct
Fields
hash — Hex-encoded hash type:
StringchainAddress type:
Stringtimestamp — Unix timestamp (seconds) type:
UInt32blockHeight type:
Int32blockHash type:
Stringscript — Raw script (hex) type:
Stringpayload — Opaque payload (hex) type:
Stringevents type:
PHANTASMA_VECTOR<Event>result type:
Stringfee type:
Stringsignatures — Attached signatures type:
PHANTASMA_VECTOR<Signature>expiration type:
UInt32state type:
Stringsender type:
StringgasPayer type:
StringgasTarget type:
StringgasPrice type:
StringgasLimit type:
String
Validator
Type: struct
Fields
address — Account address (P2K...) type:
Stringtype type:
String
Last updated