package coinbase.crypto.rosetta.types

Mouse Melon logoGet desktop application:
View/edit binary Protocol Buffers messages

message AccountIdentifier

account_identifer.proto:15

AccountIdentifier The account_identifier uniquely identifies an account within a network. All fields in the account_identifier are utilized to determine this uniqueness (including the metadata field, if populated).

Used in: Operation

message Amount

amount.proto:15

Amount is some Value of a Currency. It is considered invalid to specify a Value without a Currency.

Used in: Operation

message Block

block.proto:18

Blocks contain an array of Transactions that occurred at a particular BlockIdentifier. A hard requirement for blocks returned by Rosetta implementations is that they MUST be immutable: once a client has requested and received a block identified by a specific BlockIndentifier, all future calls for that same BlockIdentifier must return the same block contents.

Used in: chainstorage.NativeBlock, chainstorage.RosettaBlock

message BlockIdentifier

block.proto:43

The block identifier uniquely identifies a block in a particular network.

Used in: Block

message CoinChange

coin_change.proto:14

CoinChange is used to represent a change in state of a coin identified by a coin_identifier. This object is part of the Operation model and must be populated for UTXO-based blockchains. Coincidentally, this abstraction of UTXOs allows for supporting both account-based transfers and UTXO-based transfers on the same blockchain (when a transfer is account-based, don't populate this model).

Used in: Operation

enum CoinChange.CoinAction

coin_change.proto:20

CoinActions are different state changes that a Coin can undergo. It is assumed that a single Coin cannot be created or spent more than once.

Used in: CoinChange

message CoinIdentifier

coin_change.proto:33

CoinIdentifier uniquely identifies a Coin.

Used in: CoinChange

message Currency

amount.proto:28

Currency is composed of a canonical Symbol and Decimals. This Decimals value is used to convert an Amount.Value from atomic units (Satoshis) to standard units (Bitcoins).

Used in: Amount

message NetworkIdentifier

network_identifier.proto:12

NetworkIdentifier specifies which network a particular object is associated with.

Used in: RelatedTransaction

message Operation

operation.proto:19

Operations contain all balance-changing information within a transaction. They are always one-sided (only affect 1 AccountIdentifier) and can succeed or fail independently from a Transaction. Operations are used both to represent on-chain data (Data API) and to construct new transactions (Construction API), creating a standard interface for reading and writing to blockchains.

Used in: Transaction

message OperationIdentifier

operation.proto:57

OperationIdentifier uniquely identifies an operation within a transaction.

Used in: Operation

message RelatedTransaction

transaction.proto:37

RelatedTransaction allows implementations to link together multiple transactions.

Used in: Transaction

enum RelatedTransaction.Direction

transaction.proto:48

Used by RelatedTransaction to indicate the direction of the relation (i.e. cross-shard/cross-network sends may reference backward to an earlier transaction and async execution may reference forward). Can be used to indicate if a transaction relation is from child to parent or the reverse.

Used in: RelatedTransaction

message SubAccountIdentifier

account_identifer.proto:28

An account may have state specific to a contract address (ERC-20 token) and/or a stake (delegated balance). The sub_account_identifier should specify which state (if applicable) an account instantiation refers to.

Used in: AccountIdentifier

message SubNetworkIdentifier

network_identifier.proto:28

In blockchains with sharded state, the SubNetworkIdentifier is required to query some object on a specific shard. This identifier is optional for all non-sharded blockchains.

Used in: NetworkIdentifier

message Transaction

transaction.proto:14

Transactions contain an array of Operations that are attributable to the same TransactionIdentifier.

Used in: chainstorage.NativeTransaction, Block

message TransactionIdentifier

transaction.proto:30

TransactionIdentifier uniquely identifies a transaction in a particular network and block or in the mempool.

Used in: RelatedTransaction, Transaction