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

request

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: 2 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 {
	NetworkID  identifier.Network    `json:"network_identifier"`
	BlockID    identifier.Block      `json:"block_identifier"`
	AccountID  identifier.Account    `json:"account_identifier"`
	Currencies []identifier.Currency `json:"currencies"`
}

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

type Block

type Block struct {
	NetworkID identifier.Network `json:"network_identifier"`
	BlockID   identifier.Block   `json:"block_identifier"`
}

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

type Combine

type Combine struct {
	NetworkID           identifier.Network `json:"network_identifier"`
	UnsignedTransaction string             `json:"unsigned_transaction"`
	Signatures          []object.Signature `json:"signatures"`
}

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

type Hash

type Hash struct {
	NetworkID         identifier.Network `json:"network_identifier"`
	SignedTransaction string             `json:"signed_transaction"`
}

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

type Metadata

type Metadata struct {
	NetworkID identifier.Network `json:"network_identifier"`
	Options   object.Options     `json:"options"`
}

Metadata implements the request schema for /construction/metadata. `Options` object in this request is generated by a call to `/construction/preprocess`, and should be sent unaltered as returned by that endpoint. See https://www.rosetta-api.org/docs/ConstructionApi.html#request-3

type Networks

type Networks struct{}

Networks implements the empty request schema for the /network/list endpoint. See https://www.rosetta-api.org/docs/NetworkApi.html#request

type Options

type Options struct {
	NetworkID identifier.Network `json:"network_identifier"`
}

Options implements the empty request schema for the /network/options endpoint. See https://www.rosetta-api.org/docs/NetworkApi.html#request-1

type Parse

type Parse struct {
	NetworkID   identifier.Network `json:"network_identifier"`
	Signed      bool               `json:"signed"`
	Transaction string             `json:"transaction"`
}

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

type Payloads

type Payloads struct {
	NetworkID  identifier.Network `json:"network_identifier"`
	Operations []object.Operation `json:"operations"`
	Metadata   object.Metadata    `json:"metadata"`
}

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

type Preprocess

type Preprocess struct {
	NetworkID  identifier.Network `json:"network_identifier"`
	Operations []object.Operation `json:"operations"`
}

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

type Status

type Status struct {
	NetworkID identifier.Network `json:"network_identifier"`
}

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

type Submit

type Submit struct {
	NetworkID         identifier.Network `json:"network_identifier"`
	SignedTransaction string             `json:"signed_transaction"`
}

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

type Transaction

type Transaction struct {
	NetworkID     identifier.Network     `json:"network_identifier"`
	BlockID       identifier.Block       `json:"block_identifier"`
	TransactionID identifier.Transaction `json:"transaction_identifier"`
}

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

Jump to

Keyboard shortcuts

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