Versions in this module Expand all Collapse all v0 v0.7.10 Apr 21, 2022 Changes in this version + const RosettaAPIVersion + func AccountString(account *AccountIdentifier) string + func AddValues(a string, b string) (string, error) + func AmountValue(amount *Amount) (*big.Int, error) + func BigInt(value string) (*big.Int, error) + func Bool(b bool) *bool + func CurrencyString(currency *Currency) string + func DivideValues(a string, b string) (string, error) + func Hash(i interface{}) string + func Int64(i int64) *int64 + func MarshalMap(input interface{}) (map[string]interface{}, error) + func MultiplyValues(a string, b string) (string, error) + func NegateValue(val string) (string, error) + func PrettyPrintStruct(val interface{}) string + func PrintStruct(val interface{}) string + func String(s string) *string + func SubtractValues(a string, b string) (string, error) + func UnmarshalMap(metadata map[string]interface{}, output interface{}) error + type AccountBalanceRequest struct + AccountIdentifier *AccountIdentifier + BlockIdentifier *PartialBlockIdentifier + Currencies []*Currency + NetworkIdentifier *NetworkIdentifier + type AccountBalanceResponse struct + Balances []*Amount + BlockIdentifier *BlockIdentifier + Metadata map[string]interface{} + type AccountCoin struct + Account *AccountIdentifier + Coin *Coin + type AccountCoinsRequest struct + AccountIdentifier *AccountIdentifier + Currencies []*Currency + IncludeMempool bool + NetworkIdentifier *NetworkIdentifier + type AccountCoinsResponse struct + BlockIdentifier *BlockIdentifier + Coins []*Coin + Metadata map[string]interface{} + type AccountCurrency struct + Account *AccountIdentifier + Currency *Currency + type AccountIdentifier struct + Address string + Metadata map[string]interface{} + SubAccount *SubAccountIdentifier + type Allow struct + BalanceExemptions []*BalanceExemption + BlockHashCase Case + CallMethods []string + Errors []*Error + HistoricalBalanceLookup bool + MempoolCoins bool + OperationStatuses []*OperationStatus + OperationTypes []string + TimestampStartIndex *int64 + TransactionHashCase Case + type Amount struct + Currency *Currency + Metadata map[string]interface{} + Value string + func ExtractAmount(balances []*Amount, currency *Currency) *Amount + type BalanceExemption struct + Currency *Currency + ExemptionType ExemptionType + SubAccountAddress *string + type Block struct + BlockIdentifier *BlockIdentifier + Metadata map[string]interface{} + ParentBlockIdentifier *BlockIdentifier + Timestamp int64 + Transactions []*Transaction + type BlockEvent struct + BlockIdentifier *BlockIdentifier + Sequence int64 + Type BlockEventType + type BlockEventType string + const ADDED + const REMOVED + type BlockIdentifier struct + Hash string + Index int64 + type BlockRequest struct + BlockIdentifier *PartialBlockIdentifier + NetworkIdentifier *NetworkIdentifier + type BlockResponse struct + Block *Block + OtherTransactions []*TransactionIdentifier + type BlockTransaction struct + BlockIdentifier *BlockIdentifier + Transaction *Transaction + type BlockTransactionRequest struct + BlockIdentifier *BlockIdentifier + NetworkIdentifier *NetworkIdentifier + TransactionIdentifier *TransactionIdentifier + type BlockTransactionResponse struct + Transaction *Transaction + type CallRequest struct + Method string + NetworkIdentifier *NetworkIdentifier + Parameters map[string]interface{} + type CallResponse struct + Idempotent bool + Result map[string]interface{} + type Case string + const CaseSensitive + const LowerCase + const Null + const UpperCase + type Coin struct + Amount *Amount + CoinIdentifier *CoinIdentifier + type CoinAction string + const CoinCreated + const CoinSpent + type CoinChange struct + CoinAction CoinAction + CoinIdentifier *CoinIdentifier + type CoinIdentifier struct + Identifier string + type ConstructionCombineRequest struct + NetworkIdentifier *NetworkIdentifier + Signatures []*Signature + UnsignedTransaction string + type ConstructionCombineResponse struct + SignedTransaction string + type ConstructionDeriveRequest struct + Metadata map[string]interface{} + NetworkIdentifier *NetworkIdentifier + PublicKey *PublicKey + type ConstructionDeriveResponse struct + AccountIdentifier *AccountIdentifier + Metadata map[string]interface{} + func (c *ConstructionDeriveResponse) MarshalJSON() ([]byte, error) + func (c *ConstructionDeriveResponse) UnmarshalJSON(b []byte) error + type ConstructionHashRequest struct + NetworkIdentifier *NetworkIdentifier + SignedTransaction string + type ConstructionMetadataRequest struct + NetworkIdentifier *NetworkIdentifier + Options map[string]interface{} + PublicKeys []*PublicKey + type ConstructionMetadataResponse struct + Metadata map[string]interface{} + SuggestedFee []*Amount + type ConstructionParseRequest struct + NetworkIdentifier *NetworkIdentifier + Signed bool + Transaction string + type ConstructionParseResponse struct + AccountIdentifierSigners []*AccountIdentifier + Metadata map[string]interface{} + Operations []*Operation + func (c *ConstructionParseResponse) MarshalJSON() ([]byte, error) + func (c *ConstructionParseResponse) UnmarshalJSON(b []byte) error + type ConstructionPayloadsRequest struct + Metadata map[string]interface{} + NetworkIdentifier *NetworkIdentifier + Operations []*Operation + PublicKeys []*PublicKey + type ConstructionPayloadsResponse struct + Payloads []*SigningPayload + UnsignedTransaction string + type ConstructionPreprocessRequest struct + MaxFee []*Amount + Metadata map[string]interface{} + NetworkIdentifier *NetworkIdentifier + Operations []*Operation + SuggestedFeeMultiplier *float64 + type ConstructionPreprocessResponse struct + Options map[string]interface{} + RequiredPublicKeys []*AccountIdentifier + type ConstructionSubmitRequest struct + NetworkIdentifier *NetworkIdentifier + SignedTransaction string + type Currency struct + Decimals int32 + Metadata map[string]interface{} + Symbol string + type CurveType string + const Edwards25519 + const Pallas + const Secp256k1 + const Secp256r1 + const Tweedle + type Direction string + const Backward + const Forward + type Error struct + Code int32 + Description *string + Details map[string]interface{} + Message string + Retriable bool + type EventsBlocksRequest struct + Limit *int64 + NetworkIdentifier *NetworkIdentifier + Offset *int64 + type EventsBlocksResponse struct + Events []*BlockEvent + MaxSequence int64 + type ExemptionType string + const BalanceDynamic + const BalanceGreaterOrEqual + const BalanceLessOrEqual + type MempoolResponse struct + TransactionIdentifiers []*TransactionIdentifier + type MempoolTransactionRequest struct + NetworkIdentifier *NetworkIdentifier + TransactionIdentifier *TransactionIdentifier + type MempoolTransactionResponse struct + Metadata map[string]interface{} + Transaction *Transaction + type MetadataRequest struct + Metadata map[string]interface{} + type NetworkIdentifier struct + Blockchain string + Network string + SubNetworkIdentifier *SubNetworkIdentifier + type NetworkListResponse struct + NetworkIdentifiers []*NetworkIdentifier + type NetworkOptionsResponse struct + Allow *Allow + Version *Version + type NetworkRequest struct + Metadata map[string]interface{} + NetworkIdentifier *NetworkIdentifier + type NetworkStatusResponse struct + CurrentBlockIdentifier *BlockIdentifier + CurrentBlockTimestamp int64 + GenesisBlockIdentifier *BlockIdentifier + OldestBlockIdentifier *BlockIdentifier + Peers []*Peer + SyncStatus *SyncStatus + type Operation struct + Account *AccountIdentifier + Amount *Amount + CoinChange *CoinChange + Metadata map[string]interface{} + OperationIdentifier *OperationIdentifier + RelatedOperations []*OperationIdentifier + Status *string + Type string + type OperationIdentifier struct + Index int64 + NetworkIndex *int64 + type OperationStatus struct + Status string + Successful bool + type Operator string + const AND + const OR + func OperatorP(o Operator) *Operator + type PartialBlockIdentifier struct + Hash *string + Index *int64 + func ConstructPartialBlockIdentifier(blockIdentifier *BlockIdentifier) *PartialBlockIdentifier + type Peer struct + Metadata map[string]interface{} + PeerID string + type PublicKey struct + Bytes []byte + CurveType CurveType + func (s *PublicKey) MarshalJSON() ([]byte, error) + func (s *PublicKey) UnmarshalJSON(b []byte) error + type RelatedTransaction struct + Direction Direction + NetworkIdentifier *NetworkIdentifier + TransactionIdentifier *TransactionIdentifier + type SearchTransactionsRequest struct + AccountIdentifier *AccountIdentifier + Address *string + CoinIdentifier *CoinIdentifier + Currency *Currency + Limit *int64 + MaxBlock *int64 + NetworkIdentifier *NetworkIdentifier + Offset *int64 + Operator *Operator + Status *string + Success *bool + TransactionIdentifier *TransactionIdentifier + Type *string + type SearchTransactionsResponse struct + NextOffset *int64 + TotalCount int64 + Transactions []*BlockTransaction + type Signature struct + Bytes []byte + PublicKey *PublicKey + SignatureType SignatureType + SigningPayload *SigningPayload + func (s *Signature) MarshalJSON() ([]byte, error) + func (s *Signature) UnmarshalJSON(b []byte) error + type SignatureType string + const Ecdsa + const EcdsaRecovery + const Ed25519 + const Schnorr1 + const SchnorrPoseidon + type SigningPayload struct + AccountIdentifier *AccountIdentifier + Bytes []byte + SignatureType SignatureType + func (s *SigningPayload) MarshalJSON() ([]byte, error) + func (s *SigningPayload) UnmarshalJSON(b []byte) error + type SubAccountIdentifier struct + Address string + Metadata map[string]interface{} + type SubNetworkIdentifier struct + Metadata map[string]interface{} + Network string + type SyncStatus struct + CurrentIndex *int64 + Stage *string + Synced *bool + TargetIndex *int64 + type Transaction struct + Metadata map[string]interface{} + Operations []*Operation + RelatedTransactions []*RelatedTransaction + TransactionIdentifier *TransactionIdentifier + type TransactionIdentifier struct + Hash string + type TransactionIdentifierResponse struct + Metadata map[string]interface{} + TransactionIdentifier *TransactionIdentifier + type Version struct + Metadata map[string]interface{} + MiddlewareVersion *string + NodeVersion string + RosettaVersion string