Help us shape the future of Go! Take the 2026 Go Developer Survey

response

package
v1.3.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 23, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Balance

type Balance struct {
	BlockID  identifier.Block `json:"block_identifier"`
	Balances []object.Amount  `json:"balances"`
}

Balance implements the successful response schema for /account/balance. See https://www.rosetta-api.org/docs/AccountApi.html#200---ok

type Block

type Block struct {
	Block             *object.Block            `json:"block"`
	OtherTransactions []identifier.Transaction `json:"other_transactions,omitempty"`
}

Block implements the response schema for /block. See https://www.rosetta-api.org/docs/BlockApi.html#200---ok

type Combine

type Combine struct {
	SignedTransaction string `json:"signed_transaction"`
}

Combine implements the response schema for /construction/combine. See https://www.rosetta-api.org/docs/ConstructionApi.html#response

type Hash

type Hash struct {
	TransactionID identifier.Transaction `json:"transaction_identifier"`
}

Hash implements the response schema for /construction/hash. See https://www.rosetta-api.org/docs/ConstructionApi.html#response-2

type Metadata

type Metadata struct {
	Metadata object.Metadata `json:"metadata"`
}

Metadata implements the response schema for /construction/metadata. See https://www.rosetta-api.org/docs/ConstructionApi.html#response-3

type Networks

type Networks struct {
	NetworkIDs []identifier.Network `json:"network_identifiers"`
}

Networks implements the successful response schema for the /network/list endpoint. See https://www.rosetta-api.org/docs/NetworkApi.html#200---ok

type Options

type Options struct {
	Version meta.Version `json:"version"`
	Allow   OptionsAllow `json:"allow"`
}

Options implements the successful response schema for the /network/options endpoint. See https://www.rosetta-api.org/docs/NetworkApi.html#200---ok-1

type OptionsAllow

type OptionsAllow struct {
	OperationStatuses       []meta.StatusDefinition `json:"operation_statuses"`
	OperationTypes          []string                `json:"operation_types"`
	Errors                  []meta.ErrorDefinition  `json:"errors"`
	HistoricalBalanceLookup bool                    `json:"historical_balance_lookup"`
	CallMethods             []string                `json:"call_methods"`       // not used
	BalanceExemptions       []struct{}              `json:"balance_exemptions"` // not used
	MempoolCoins            bool                    `json:"mempool_coins"`
}

OptionsAllow specifies supported Operation statuses, Operation types, and all possible error statuses. It is returned by the /network/options endpoint.

type Parse

type Parse struct {
	Operations []object.Operation   `json:"operations"`
	SignerIDs  []identifier.Account `json:"account_identifier_signers,omitempty"`
	Metadata   object.Metadata      `json:"metadata,omitempty"`
}

Parse implements the response schema for /construction/parse. See https://www.rosetta-api.org/docs/ConstructionApi.html#response-4

type Payloads

type Payloads struct {
	Transaction string                  `json:"unsigned_transaction"`
	Payloads    []object.SigningPayload `json:"payloads"`
}

Payloads implements the response schema for /construction/payloads. See https://www.rosetta-api.org/docs/ConstructionApi.html#response-5

type Preprocess

type Preprocess struct {
	object.Options `json:"options,omitempty"`
}

Preprocess implements the response schema for /construction/preprocess. See https://www.rosetta-api.org/docs/ConstructionApi.html#response-6

type Status

type Status struct {
	CurrentBlockID        identifier.Block `json:"current_block_identifier"`
	CurrentBlockTimestamp int64            `json:"current_block_timestamp"`
	OldestBlockID         identifier.Block `json:"oldest_block_identifier"`
	GenesisBlockID        identifier.Block `json:"genesis_block_identifier"`
	Peers                 []struct{}       `json:"peers"` // not used
}

Status implements the successful response schema for /network/status. See https://www.rosetta-api.org/docs/NetworkApi.html#200---ok-2

type Submit

type Submit struct {
	TransactionID identifier.Transaction `json:"transaction_identifier"`
}

Submit implements the response schema for /construction/submit. See https://www.rosetta-api.org/docs/ConstructionApi.html#response-7

type Transaction

type Transaction struct {
	Transaction *object.Transaction `json:"transaction"`
}

Transaction implements the successful response schema for /block/transaction. See https://www.rosetta-api.org/docs/BlockApi.html#200---ok-1

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL