Versions in this module Expand all Collapse all v0 v0.10.2 Jul 17, 2023 Changes in this version + const CompressionNone + const CompressionZlib + const GoAwayAuthentication + const GoAwayBadTransaction + const GoAwayBenignOther + const GoAwayDuplicate + const GoAwayFatalOther + const GoAwayForked + const GoAwayNoReason + const GoAwaySelfConnect + const GoAwayUnlinkable + const GoAwayValidation + const GoAwayWrongChain + const GoAwayWrongVersion + const JSONTimeFormat + const OptionalField + var BlockSigningAuthorityVariant = NewVariantDefinition([]VariantType{ ... }) + var EOSSymbol = Symbol + var ErrNotFound = errors.New("resource not found") + var ErrUnknownMessageType = errors.New("unknown type") + var ErrVarIntBufferSize = errors.New("varint: invalid buffer size") + var REXSymbol = Symbol + var RegisteredActions = map[AccountName]map[ActionName]reflect.Type + var TNTSymbol = Symbol + var TypeSize = struct{ ... } + func BlockNum(blockID string) uint32 + func EnableDebugLogging(l *zap.Logger) + func ExtendedStringToName(s string) (val uint64, err error) + func MarshalBinary(v interface{}) ([]byte, error) + func MustStringToName(s string) (val uint64) + func NameToString(in uint64) string + func NewLogger(production bool) *zap.Logger + func RegisterAction(accountName AccountName, actionName ActionName, obj interface{}) + func SigDigest(chainID, payload, contextFreeData []byte) []byte + func StringToName(s string) (val uint64, err error) + func UnmarshalBinary(data []byte, v interface{}) (err error) + func UnmarshalBinaryReader(reader io.Reader, v interface{}) (err error) + type ABI struct + Actions []ActionDef + ErrorMessages []ABIErrorMessage + Extensions []*Extension + RicardianClauses []ClausePair + Structs []StructDef + Tables []TableDef + Types []ABIType + Variants []VariantDef + Version string + func NewABI(r io.Reader) (*ABI, error) + func (a *ABI) ActionForName(name ActionName) *ActionDef + func (a *ABI) Decode(binaryDecoder *Decoder, structName string) ([]byte, error) + func (a *ABI) DecodeAction(data []byte, actionName ActionName) ([]byte, error) + func (a *ABI) DecodeTableRow(tableName TableName, data []byte) ([]byte, error) + func (a *ABI) DecodeTableRowTyped(tableType string, data []byte) ([]byte, error) + func (a *ABI) EncodeAction(actionName ActionName, json []byte) ([]byte, error) + func (a *ABI) EncodeStruct(structName string, json []byte) ([]byte, error) + func (a *ABI) EncodeTable(tableName TableName, json []byte) ([]byte, error) + func (a *ABI) SetFitNodeos(v bool) + func (a *ABI) StructForName(name string) *StructDef + func (a *ABI) TableForName(name TableName) *TableDef + func (a *ABI) TypeNameForNewTypeName(typeName string) (resolvedTypeName string, isAlias bool) + func (a *ABI) VariantForName(name string) *VariantDef + type ABIBinToJSONResp struct + Args M + type ABIEncoder struct + type ABIErrorMessage struct + Code Uint64 + Message string + type ABIJSONToBinResp struct + Binargs string + type ABIType struct + NewTypeName string + Type string + type API struct + BaseURL string + Compress CompressionType + Debug bool + DefaultMaxCPUUsageMS uint8 + DefaultMaxNetUsageWords uint32 + Header http.Header + HttpClient *http.Client + Signer Signer + func New(baseURL string) *API + func (api *API) ABIBinToJSON(ctx context.Context, code AccountName, action Name, payload HexBytes) (out M, err error) + func (api *API) ABIJSONToBin(ctx context.Context, code AccountName, action Name, payload M) (out HexBytes, err error) + func (api *API) CreateSnapshot(ctx context.Context) (out *CreateSnapshotResp, err error) + func (api *API) EnableKeepAlives() bool + func (api *API) FixKeepAlives(ctx context.Context) bool + func (api *API) GetABI(ctx context.Context, account AccountName) (out *GetABIResp, err error) + func (api *API) GetAccount(ctx context.Context, name AccountName, opts ...GetAccountOption) (out *AccountResp, err error) + func (api *API) GetAccountsByAuthorizers(ctx context.Context, authorizations []PermissionLevel, keys []ecc.PublicKey) (out *GetAccountsByAuthorizersResp, err error) + func (api *API) GetActions(ctx context.Context, params GetActionsRequest) (out *ActionsResp, err error) + func (api *API) GetBlockByID(ctx context.Context, id string) (out *BlockResp, err error) + func (api *API) GetBlockByNum(ctx context.Context, num uint32) (out *BlockResp, err error) + func (api *API) GetBlockByNumOrID(ctx context.Context, query string) (out *SignedBlock, err error) + func (api *API) GetBlockByNumOrIDRaw(ctx context.Context, query string) (out interface{}, err error) + func (api *API) GetCode(ctx context.Context, account AccountName) (out *GetCodeResp, err error) + func (api *API) GetCodeHash(ctx context.Context, account AccountName) (out Checksum256, err error) + func (api *API) GetControlledAccounts(ctx context.Context, controllingAccount string) (out *ControlledAccountsResp, err error) + func (api *API) GetCurrencyBalance(ctx context.Context, account AccountName, symbol string, code AccountName) (out []Asset, err error) + func (api *API) GetCurrencyStats(ctx context.Context, code AccountName, symbol string) (out *GetCurrencyStatsResp, err error) + func (api *API) GetDBSize(ctx context.Context) (out *DBSizeResp, err error) + func (api *API) GetInfo(ctx context.Context) (out *InfoResp, err error) + func (api *API) GetIntegrityHash(ctx context.Context) (out *GetIntegrityHashResp, err error) + func (api *API) GetKeyAccounts(ctx context.Context, publicKey string) (out *KeyAccountsResp, err error) + func (api *API) GetNetConnections(ctx context.Context) (out []*NetConnectionsResp, err error) + func (api *API) GetNetStatus(ctx context.Context, host string) (out *NetStatusResp, err error) + func (api *API) GetProducerProtocolFeatures(ctx context.Context) (out []ProtocolFeature, err error) + func (api *API) GetProducers(ctx context.Context) (out *ProducersResp, err error) + func (api *API) GetPublicKeys(ctx context.Context) (out []*ecc.PublicKey, err error) + func (api *API) GetRawABI(ctx context.Context, params GetRawABIRequest) (out *GetRawABIResp, err error) + func (api *API) GetRawCodeAndABI(ctx context.Context, account AccountName) (out *GetRawCodeAndABIResp, err error) + func (api *API) GetRequiredKeys(ctx context.Context, tx *Transaction) (out *GetRequiredKeysResp, err error) + func (api *API) GetScheduledTransactions(ctx context.Context) (out *ScheduledTransactionsResp, err error) + func (api *API) GetScheduledTransactionsWithBounds(ctx context.Context, lower_bound string, limit uint32) (out *ScheduledTransactionsResp, err error) + func (api *API) GetTableByScope(ctx context.Context, params GetTableByScopeRequest) (out *GetTableByScopeResp, err error) + func (api *API) GetTableRows(ctx context.Context, params GetTableRowsRequest) (out *GetTableRowsResp, err error) + func (api *API) GetTransaction(ctx context.Context, id string) (out *TransactionResp, err error) + func (api *API) GetTransactionRaw(ctx context.Context, id string) (out json.RawMessage, err error) + func (api *API) GetTransactions(ctx context.Context, name AccountName) (out *TransactionsResp, err error) + func (api *API) IsProducerPaused(ctx context.Context) (out bool, err error) + func (api *API) ListKeys(ctx context.Context, walletNames ...string) (out []*ecc.PrivateKey, err error) + func (api *API) ListWallets(ctx context.Context, walletName ...string) (out []string, err error) + func (api *API) NetConnect(ctx context.Context, host string) (out NetConnectResp, err error) + func (api *API) NetDisconnect(ctx context.Context, host string) (out NetDisconnectResp, err error) + func (api *API) ProducerPause(ctx context.Context) error + func (api *API) ProducerResume(ctx context.Context) error + func (api *API) PushTransaction(ctx context.Context, tx *PackedTransaction) (out *PushTransactionFullResp, err error) + func (api *API) PushTransactionRaw(ctx context.Context, tx *PackedTransaction) (out json.RawMessage, err error) + func (api *API) ScheduleProducerProtocolFeatureActivations(ctx context.Context, protocolFeaturesToActivate []Checksum256) error + func (api *API) SendTransaction(ctx context.Context, tx *PackedTransaction) (out *PushTransactionFullResp, err error) + func (api *API) SendTransactionRaw(ctx context.Context, tx *PackedTransaction) (out json.RawMessage, err error) + func (api *API) SetCustomGetRequiredKeys(f func(ctx context.Context, tx *Transaction) ([]ecc.PublicKey, error)) + func (api *API) SetSigner(s Signer) + func (api *API) SignPushActions(ctx context.Context, a ...*Action) (out *PushTransactionFullResp, err error) + func (api *API) SignPushActionsWithOpts(ctx context.Context, actions []*Action, opts *TxOptions) (out *PushTransactionFullResp, err error) + func (api *API) SignPushTransaction(ctx context.Context, tx *Transaction, chainID Checksum256, ...) (out *PushTransactionFullResp, err error) + func (api *API) SignTransaction(ctx context.Context, tx *Transaction, chainID Checksum256, ...) (*SignedTransaction, *PackedTransaction, error) + func (api *API) UsePartialRequiredKeys() + func (api *API) WalletCreate(ctx context.Context, walletName string) (err error) + func (api *API) WalletImportKey(ctx context.Context, walletName, wifPrivKey string) (err error) + func (api *API) WalletLock(ctx context.Context, walletName string) (err error) + func (api *API) WalletLockAll(ctx context.Context) (err error) + func (api *API) WalletOpen(ctx context.Context, walletName string) (err error) + func (api *API) WalletPublicKeys(ctx context.Context) (out []ecc.PublicKey, err error) + func (api *API) WalletSetTimeout(ctx context.Context, timeout int32) (err error) + func (api *API) WalletSignTransaction(ctx context.Context, tx *SignedTransaction, chainID []byte, ...) (out *WalletSignTransactionResp, err error) + func (api *API) WalletUnlock(ctx context.Context, walletName, password string) (err error) + type APIError struct + Code int + ErrorStruct struct{ ... } + Message string + func NewAPIError(httpCode int, msg string, e eoserr.Error) *APIError + func (e APIError) Error() string + func (e APIError) IsUnknownKeyError() bool + type APIErrorDetail struct + File string + LineNumber int + Message string + Method string + type AccountDelta struct + Account AccountName + Delta Int64 + type AccountName Name + func AN(in string) AccountName + func (n AccountName) String() string + type AccountRAMDelta struct + Account AccountName + Delta Int64 + type AccountResourceLimit struct + Available Int64 + Max Int64 + Used Int64 + type AccountResp struct + AccountName AccountName + CPULimit AccountResourceLimit + CPUWeight Int64 + CoreLiquidBalance Asset + Created JSONTime + LastCodeUpdate JSONTime + NetLimit AccountResourceLimit + NetWeight Int64 + Permissions []Permission + Privileged bool + RAMQuota Int64 + RAMUsage Int64 + RefundRequest *RefundRequest + SelfDelegatedBandwidth DelegatedBandwidth + TotalResources TotalResources + VoterInfo VoterInfo + type AccountResult struct + Account AccountName + AuthorizingAccount *PermissionLevel + AuthorizingKey *ecc.PublicKey + Permission PermissionName + Threshold uint32 + Weight uint16 + type Action struct + Account AccountName + Authorization []PermissionLevel + Name ActionName + func (a *Action) MapToRegisteredAction() error + func (a *Action) MarshalJSON() ([]byte, error) + func (a Action) Digest() Checksum256 + type ActionData struct + Data interface{} + HexData HexBytes + func NewActionData(obj interface{}) ActionData + func NewActionDataFromHexData(data []byte) ActionData + func (a *ActionData) SetToServer(toServer bool) + func (data *ActionData) EncodeActionData() ([]byte, error) + type ActionDef struct + Name ActionName + RicardianContract string + Type string + type ActionName Name + func ActN(in string) ActionName + func (n ActionName) String() string + type ActionResp struct + AccountSeq JSONInt64 + BlockNum uint32 + BlockTime BlockTimestamp + GlobalSeq JSONInt64 + Irreversible bool + Trace ActionTrace + type ActionTrace struct + AccountRAMDeltas []*AccountRAMDelta + Action *Action + ActionOrdinal Varuint32 + BlockNum uint32 + BlockTime BlockTimestamp + ClosestUnnotifiedAncestorActionOrdinal Varuint32 + Console SafeString + ContextFree bool + CreatorActionOrdinal Varuint32 + Elapsed Int64 + ErrorCode *Uint64 + Except *Except + InlineTraces []ActionTrace + ProducerBlockID Checksum256 + Receipt *ActionTraceReceipt + Receiver AccountName + TransactionID Checksum256 + type ActionTraceReceipt struct + ABISequence Varuint32 + ActionDigest Checksum256 + AuthSequence []TransactionTraceAuthSequence + CodeSequence Varuint32 + GlobalSequence Uint64 + ReceiveSequence Uint64 + Receiver AccountName + type ActionsResp struct + Actions []ActionResp + LastIrreversibleBlock uint32 + type Asset struct + Amount Int64 + func NewAsset(in string) (out Asset, err error) + func NewAssetFromString(in string) (out Asset, err error) + func NewEOSAsset(amount int64) Asset + func NewEOSAssetFromString(input string) (Asset, error) + func NewFixedSymbolAssetFromString(symbol Symbol, input string) (out Asset, err error) + func NewREXAssetFromString(input string) (Asset, error) + func NewTNTAssetFromString(input string) (Asset, error) + func (a *Asset) UnmarshalJSON(data []byte) error + func (a Asset) Add(other Asset) Asset + func (a Asset) MarshalJSON() (data []byte, err error) + func (a Asset) String() string + func (a Asset) Sub(other Asset) Asset + type Authority struct + Accounts []PermissionLevelWeight + Keys []KeyWeight + Threshold uint32 + Waits []WaitWeight + type BaseVariant struct + Impl interface{} + TypeID uint32 + func (a *BaseVariant) Assign(typeID uint32, impl interface{}) + func (a *BaseVariant) MarshalJSON(def *VariantDefinition) ([]byte, error) + func (a *BaseVariant) Obtain(def *VariantDefinition) (typeID uint32, typeName string, impl interface{}) + func (a *BaseVariant) UnmarshalBinaryVariant(decoder *Decoder, def *VariantDefinition) error + func (a *BaseVariant) UnmarshalJSON(data []byte, def *VariantDefinition) error + type Blob string + func (b Blob) Data() ([]byte, error) + func (b Blob) String() string + type BlockHeader struct + ActionMRoot Checksum256 + Confirmed uint16 + HeaderExtensions []*Extension + NewProducersV1 *ProducerSchedule + Previous Checksum256 + Producer AccountName + ScheduleVersion uint32 + Timestamp BlockTimestamp + TransactionMRoot Checksum256 + func (b *BlockHeader) BlockID() (Checksum256, error) + func (b *BlockHeader) BlockNumber() uint32 + type BlockHeaderExtension interface + TypeID func() BlockHeaderExtensionType + type BlockHeaderExtensionType uint16 + const EOS_ProducerScheduleChangeExtension + const EOS_ProtocolFeatureActivation + type BlockResp struct + BlockNum uint32 + ID Checksum256 + RefBlockPrefix uint32 + type BlockSigningAuthority struct + func (a *BlockSigningAuthority) MarshalJSON() ([]byte, error) + func (a *BlockSigningAuthority) UnmarshalBinary(decoder *Decoder) error + func (a *BlockSigningAuthority) UnmarshalJSON(data []byte) error + type BlockSigningAuthorityV0 struct + Keys []*KeyWeight + Threshold uint32 + type BlockState struct + ActivatedProtocolFeatures *ProtocolFeatureActivationSet + ActiveSchedule *ProducerScheduleOrAuthoritySchedule + AdditionalSignatures []ecc.Signature + BlockID Checksum256 + BlockNum uint32 + BlockSigningKeyV1 *ecc.PublicKey + BlockrootMerkle *MerkleRoot + ConfirmCount []uint8 + DPoSIrreversibleBlockNum uint32 + DPoSProposedIrreversibleBlockNum uint32 + Header *SignedBlockHeader + PendingSchedule *PendingSchedule + ProducerToLastImpliedIRB []PairAccountNameBlockNum + ProducerToLastProduced []PairAccountNameBlockNum + SignedBlock *SignedBlock + ValidBlockSigningAuthorityV2 *BlockSigningAuthority + Validated bool + type BlockTimestamp struct + func (t *BlockTimestamp) UnmarshalJSON(data []byte) (err error) + func (t BlockTimestamp) MarshalJSON() ([]byte, error) + type Bool bool + func (b *Bool) UnmarshalJSON(data []byte) error + type ChainSizeMessage struct + HeadID Checksum256 + HeadNum uint32 + LastIrreversibleBlockID Checksum256 + LastIrreversibleBlockNum uint32 + func (m *ChainSizeMessage) GetType() P2PMessageType + type Checksum160 []byte + func (t *Checksum160) UnmarshalJSON(data []byte) (err error) + func (t Checksum160) MarshalJSON() ([]byte, error) + type Checksum256 []byte + func (t *Checksum256) UnmarshalJSON(data []byte) (err error) + func (t Checksum256) MarshalJSON() ([]byte, error) + func (t Checksum256) String() string + type Checksum512 []byte + func (t *Checksum512) UnmarshalJSON(data []byte) (err error) + func (t Checksum512) MarshalJSON() ([]byte, error) + type ClausePair struct + Body string + ID string + type CompressionType uint8 + func (c *CompressionType) UnmarshalJSON(data []byte) error + func (c CompressionType) MarshalJSON() ([]byte, error) + func (c CompressionType) String() string + type ControlledAccountsResp struct + ControlledAccounts []string + type CreateSnapshotResp struct + HeadBlockID string + SnapshotName string + type Currency struct + Name CurrencyName + Precision uint8 + type CurrencyBalanceResp struct + EOSBalance Asset + LastUnstakingTime JSONTime + StakedBalance Asset + UnstakingBalance Asset + type CurrencyName string + type DBSizeResp struct + FreeBytes Int64 + Indices []struct{ ... } + Size Int64 + UsedBytes Int64 + type DataAccess struct + Code AccountName + Scope AccountName + Sequence int + Type string + type DecodeOption = interface + type Decoder struct + func NewDecoder(data []byte) *Decoder + func (d *Decoder) Decode(v interface{}, options ...DecodeOption) (err error) + func (d *Decoder) DecodeActions(decode bool) + func (d *Decoder) DecodeP2PMessage(decode bool) + func (d *Decoder) LastPos() int + func (d *Decoder) ReadActionData(action *Action) (err error) + func (d *Decoder) ReadAsset() (out Asset, err error) + func (d *Decoder) ReadBlockTimestamp() (out BlockTimestamp, err error) + func (d *Decoder) ReadBool() (out bool, err error) + func (d *Decoder) ReadByte() (out byte, err error) + func (d *Decoder) ReadByteArray() (out []byte, err error) + func (d *Decoder) ReadChecksum160() (out Checksum160, err error) + func (d *Decoder) ReadChecksum256() (out Checksum256, err error) + func (d *Decoder) ReadChecksum512() (out Checksum512, err error) + func (d *Decoder) ReadCurrencyName() (out CurrencyName, err error) + func (d *Decoder) ReadExtendedAsset() (out ExtendedAsset, err error) + func (d *Decoder) ReadFloat32() (out float32, err error) + func (d *Decoder) ReadFloat64() (out float64, err error) + func (d *Decoder) ReadInt128() (out Int128, err error) + func (d *Decoder) ReadInt16() (out int16, err error) + func (d *Decoder) ReadInt32() (out int32, err error) + func (d *Decoder) ReadInt64() (out int64, err error) + func (d *Decoder) ReadInt8() (out int8, err error) + func (d *Decoder) ReadJSONTime() (jsonTime JSONTime, err error) + func (d *Decoder) ReadName() (out Name, err error) + func (d *Decoder) ReadNodeosFloat32() (out float32, err error) + func (d *Decoder) ReadP2PMessageEnvelope() (out *Packet, err error) + func (d *Decoder) ReadPublicKey() (out ecc.PublicKey, err error) + func (d *Decoder) ReadSignature() (out ecc.Signature, err error) + func (d *Decoder) ReadString() (out string, err error) + func (d *Decoder) ReadSymbol() (out *Symbol, err error) + func (d *Decoder) ReadSymbolCode() (out SymbolCode, err error) + func (d *Decoder) ReadTimePoint() (out TimePoint, err error) + func (d *Decoder) ReadTimePointSec() (out TimePointSec, err error) + func (d *Decoder) ReadTstamp() (out Tstamp, err error) + func (d *Decoder) ReadUInt8() (out uint8, err error) + func (d *Decoder) ReadUint128(typeName string) (out Uint128, err error) + func (d *Decoder) ReadUint16() (out uint16, err error) + func (d *Decoder) ReadUint32() (out uint32, err error) + func (d *Decoder) ReadUint64() (out uint64, err error) + func (d *Decoder) ReadUint8() (out uint8, err error) + func (d *Decoder) ReadUvarint32() (out uint32, err error) + func (d *Decoder) ReadUvarint64() (uint64, error) + func (d *Decoder) ReadVarint32() (out int32, err error) + func (d *Decoder) ReadVarint64() (out int64, err error) + func (d *Decoder) SafeReadUTF8String() (out string, err error) + type DeferredTransaction struct + DelayUntil JSONTime + Sender AccountName + SenderID uint32 + type DelegatedBandwidth struct + CPUWeight Asset + From AccountName + NetWeight Asset + To AccountName + type Encoder struct + Order binary.ByteOrder + func NewEncoder(w io.Writer) *Encoder + func (e *Encoder) Encode(v interface{}) (err error) + type Except struct + Code Int64 + Message string + Name string + Stack []*ExceptLogMessage + type ExceptLogContext struct + Context *ExceptLogContext + File string + Hostname string + Level ExceptLogLevel + Line uint64 + Method string + ThreadName string + Timestamp JSONTime + type ExceptLogLevel uint8 + const ExceptLogLevelAll + const ExceptLogLevelDebug + const ExceptLogLevelError + const ExceptLogLevelInfo + const ExceptLogLevelOff + const ExceptLogLevelWarn + func (s *ExceptLogLevel) FromString(input string) + func (s *ExceptLogLevel) UnmarshalJSON(data []byte) error + func (s ExceptLogLevel) MarshalJSON() (data []byte, err error) + func (s ExceptLogLevel) String() string + type ExceptLogMessage struct + Context ExceptLogContext + Data json.RawMessage + Format string + func (m *ExceptLogMessage) UnmarshalBinary(decoder *Decoder) error + type ExtendedAsset struct + Asset Asset + Contract AccountName + type Extension struct + Data HexBytes + Type uint16 + func (e *Extension) AsBlockHeaderExtension(chain string) (BlockHeaderExtension, error) + func (e *Extension) MarshalJSON() ([]byte, error) + func (e *Extension) UnmarshalBinary(decoder *Decoder) error + func (e *Extension) UnmarshalJSON(data []byte) error + type FieldDef struct + Name string + Type string + type Float128 Uint128 + func (i *Float128) UnmarshalJSON(data []byte) error + func (i Float128) MarshalJSON() (data []byte, err error) + type Float64 float64 + func (f *Float64) MarshalJSON() ([]byte, error) + func (f *Float64) UnmarshalJSON(data []byte) error + type GetABIResp struct + ABI ABI + AccountName AccountName + type GetAccountOption interface + func WithCoreSymbol(symbol Symbol) GetAccountOption + type GetAccountsByAuthorizersResp struct + Accounts []AccountResult + type GetActionsRequest struct + AccountName AccountName + Offset Int64 + Pos Int64 + type GetCodeHashResp struct + AccountName AccountName + CodeHash string + type GetCodeResp struct + ABI ABI + AccountName AccountName + CodeHash string + WASM string + type GetCurrencyStatsResp struct + Issuer AccountName + MaxSupply Asset + Supply Asset + type GetIntegrityHashResp struct + HeadBlockID string + SnapshotName string + type GetRawABIRequest struct + ABIHash Checksum256 + AccountName string + type GetRawABIResp struct + ABI Blob + ABIHash Checksum256 + AccountName string + CodeHash Checksum256 + type GetRawCodeAndABIResp struct + ABIasBase64 string + AccountName AccountName + WASMasBase64 string + type GetRequiredKeysResp struct + RequiredKeys []ecc.PublicKey + type GetTableByScopeRequest struct + Code string + Limit uint32 + LowerBound string + Table string + UpperBound string + type GetTableByScopeResp struct + More string + Rows json.RawMessage + type GetTableRowsRequest struct + Code string + EncodeType string + Index string + JSON bool + KeyType string + Limit uint32 + LowerBound string + Reverse bool + Scope string + Table string + UpperBound string + type GetTableRowsResp struct + More bool + Rows json.RawMessage + func (resp *GetTableRowsResp) BinaryToStructs(v interface{}) error + func (resp *GetTableRowsResp) JSONToStructs(v interface{}) error + type Global struct + BasePerTransactionNetUsage int + ContextFreeDiscountNetUsageDen int + ContextFreeDiscountNetUsageNum int + DeferredTrxExpirationWindow int + LastNameClose string + LastPervoteBucketFill Int64 + LastProducerScheduleSize int + LastProducerScheduleUpdate string + MaxAuthorityDepth int + MaxBlockCPUUsage int + MaxBlockNetUsage int + MaxInlineActionDepth int + MaxInlineActionSize int + MaxRAMSize string + MaxTransactionCPUUsage int + MaxTransactionDelay int + MaxTransactionLifetime int + MaxTransactionNetUsage int + MinTransactionCPUUsage int + NetUsageLeeway int + PerblockBucket int + PervoteBucket int + TargetBlockCPUUsagePct int + TargetBlockNetUsagePct int + ThreshActivatedStakeTime Int64 + TotalActivatedStake float64 + TotalProducerVoteWeight float64 + TotalRAMBytesReserved Int64 + TotalRAMStake Int64 + TotalUnpaidBlocks int + type GoAwayMessage struct + NodeID Checksum256 + Reason GoAwayReason + func (m *GoAwayMessage) GetType() P2PMessageType + func (m *GoAwayMessage) String() string + type GoAwayReason uint8 + func (r GoAwayReason) String() string + type HandshakeMessage struct + Agent string + ChainID Checksum256 + Generation int16 + HeadID Checksum256 + HeadNum uint32 + Key ecc.PublicKey + LastIrreversibleBlockID Checksum256 + LastIrreversibleBlockNum uint32 + NetworkVersion uint16 + NodeID Checksum256 + OS string + P2PAddress string + Signature ecc.Signature + Time Tstamp + Token Checksum256 + func (m *HandshakeMessage) GetType() P2PMessageType + func (m *HandshakeMessage) String() string + type HexBytes []byte + func (t *HexBytes) UnmarshalJSON(data []byte) (err error) + func (t HexBytes) MarshalJSON() ([]byte, error) + func (t HexBytes) String() string + type IDListMode byte + type InfoResp struct + BlockCPULimit Int64 + BlockNetLimit Int64 + ChainID Checksum256 + HeadBlockID Checksum256 + HeadBlockNum uint32 + HeadBlockProducer AccountName + HeadBlockTime BlockTimestamp + LastIrreversibleBlockID Checksum256 + LastIrreversibleBlockNum uint32 + ServerVersion string + ServerVersionString string + VirtualBlockCPULimit Int64 + VirtualBlockNetLimit Int64 + type Int128 Uint128 + func (i *Int128) UnmarshalJSON(data []byte) error + func (i Int128) BigInt() *big.Int + func (i Int128) DecimalString() string + func (i Int128) MarshalJSON() (data []byte, err error) + type Int64 int64 + func (i *Int64) UnmarshalJSON(data []byte) error + func (i Int64) MarshalJSON() (data []byte, err error) + type JSONFloat64 = Float64 + type JSONInt64 = Int64 + type JSONTime struct + func ParseJSONTime(date string) (JSONTime, error) + func (t *JSONTime) UnmarshalJSON(data []byte) (err error) + func (t JSONTime) MarshalJSON() ([]byte, error) + type KeyAccountsResp struct + AccountNames []string + type KeyBag struct + Keys []*ecc.PrivateKey + func NewKeyBag() *KeyBag + func (b *KeyBag) Add(wifKey string) error + func (b *KeyBag) Append(privateKey *ecc.PrivateKey) error + func (b *KeyBag) AvailableKeys(ctx context.Context) (out []ecc.PublicKey, err error) + func (b *KeyBag) ImportFromFile(path string) error + func (b *KeyBag) ImportPrivateKey(ctx context.Context, wifPrivKey string) (err error) + func (b *KeyBag) Sign(ctx context.Context, tx *SignedTransaction, chainID []byte, ...) (*SignedTransaction, error) + func (b *KeyBag) SignDigest(digest []byte, requiredKey ecc.PublicKey) (ecc.Signature, error) + type KeyWeight struct + PublicKey ecc.PublicKey + Weight uint16 + type M map[string]interface + type MarshalerBinary interface + MarshalBinary func(encoder *Encoder) error + type MerkleRoot struct + ActiveNodes []Checksum256 + NodeCount uint64 + type MessageReflectTypes struct + Name string + ReflectType reflect.Type + type MyStruct struct + Balance Uint64 + type Name string + func (n Name) String() string + type NetConnectResp string + type NetConnectionsResp struct + Connecting bool + LastHandshake HandshakeMessage + Peer string + Syncing bool + type NetDisconnectResp string + type NetStatusResp struct + type NoticeMessage struct + KnownBlocks OrderedBlockIDs + KnownTrx OrderedBlockIDs + func (m *NoticeMessage) GetType() P2PMessageType + func (n *NoticeMessage) String() string + type OnVariant = func(impl interface{}) error + type OrderedBlockIDs struct + IDs []Checksum256 + Mode [4]byte + Pending uint32 + func (o *OrderedBlockIDs) String() string + type OrderedTransactionIDs struct + IDs []Checksum256 + Mode [4]byte + Pending uint32 + type P2PMessage interface + GetType func() P2PMessageType + type P2PMessageType byte + const ChainSizeType + const GoAwayMessageType + const HandshakeMessageType + const NoticeMessageType + const PackedTransactionMessageType + const RequestMessageType + const SignedBlockType + const SyncRequestMessageType + const TimeMessageType + func NewMessageType(aType byte) (t P2PMessageType, err error) + func (t P2PMessageType) Name() (string, bool) + type PackedTransaction struct + Compression CompressionType + PackedContextFreeData HexBytes + PackedTransaction HexBytes + Signatures []ecc.Signature + func (p *PackedTransaction) ID() (Checksum256, error) + func (p *PackedTransaction) Unpack() (signedTx *SignedTransaction, err error) + func (p *PackedTransaction) UnpackBare() (signedTx *SignedTransaction, err error) + type PackedTransactionMessage struct + func (m *PackedTransactionMessage) GetType() P2PMessageType + func (m PackedTransactionMessage) String() string + type Packet struct + Length uint32 + P2PMessage P2PMessage + Payload []byte + Raw []byte + Type P2PMessageType + func ReadPacket(r io.Reader) (packet *Packet, err error) + type PairAccountNameBlockNum struct + AccountName AccountName + BlockNum uint32 + func (c *PairAccountNameBlockNum) UnmarshalBinary(decoder *Decoder) error + func (c *PairAccountNameBlockNum) UnmarshalJSON(data []byte) error + func (c PairAccountNameBlockNum) MarshalJSON() ([]byte, error) + type PendingSchedule struct + Schedule *ProducerScheduleOrAuthoritySchedule + ScheduleHash Checksum256 + ScheduleLIBNum uint32 + type Permission struct + Parent string + PermName string + RequiredAuth Authority + type PermissionLevel struct + Actor AccountName + Permission PermissionName + func NewPermissionLevel(in string) (out PermissionLevel, err error) + type PermissionLevelWeight struct + Permission PermissionLevel + Weight uint16 + type PermissionName Name + func PN(in string) PermissionName + func (n PermissionName) String() string + type ProcessedTransaction struct + Transaction SignedTransaction + type Producer struct + IsActive Bool + LastClaimTime JSONTime + Location int + Owner Name + ProducerKey ecc.PublicKey + TotalVotes Float64 + URL string + UnpaidBlocks int + type ProducerAuthority struct + AccountName AccountName + BlockSigningAuthority *BlockSigningAuthority + type ProducerAuthoritySchedule struct + Producers []*ProducerAuthority + Version uint32 + type ProducerChange struct + type ProducerKey struct + AccountName AccountName + BlockSigningKey ecc.PublicKey + type ProducerSchedule struct + Producers []ProducerKey + Version uint32 + type ProducerScheduleChangeExtension struct + func (e *ProducerScheduleChangeExtension) TypeID() BlockHeaderExtensionType + type ProducerScheduleOrAuthoritySchedule struct + V1 *ProducerSchedule + V2 *ProducerAuthoritySchedule + func (p *ProducerScheduleOrAuthoritySchedule) MarshalJSON() ([]byte, error) + func (p *ProducerScheduleOrAuthoritySchedule) UnmarshalBinary(decoder *Decoder) error + func (p *ProducerScheduleOrAuthoritySchedule) UnmarshalJSON(data []byte) error + type ProducersResp struct + More Name + Producers []Producer + TotalProducerVoteWeight Float64 + type ProtocolFeature struct + Dependencies []Checksum256 + DescriptionDigest Checksum256 + FeatureDigest Checksum256 + ProtocolFeatureType string + Specification []ProtocolFeatureSpecification + SubjectiveRestriction SubjectiveRestriction + type ProtocolFeatureActivationExtension struct + FeatureDigests []Checksum256 + func (e *ProtocolFeatureActivationExtension) TypeID() BlockHeaderExtensionType + type ProtocolFeatureActivationSet struct + ProtocolFeatures []Checksum256 + type ProtocolFeatureSpecification struct + Name string + Value string + type PushTransactionFullResp struct + BlockID string + BlockNum uint32 + Processed TransactionProcessed + StatusCode string + TransactionID string + type PushTransactionShortResp struct + Processed bool + TransactionID string + type RefundRequest struct + CPUAmount Asset + NetAmount Asset + Owner AccountName + RequestTime JSONTime + type RequestMessage struct + ReqBlocks OrderedBlockIDs + ReqTrx OrderedBlockIDs + func (m *RequestMessage) GetType() P2PMessageType + func (r *RequestMessage) String() string + type SHA256Bytes = Checksum256 + type SafeString string + func (ss *SafeString) UnmarshalBinary(d *Decoder) error + type ScheduledTransaction struct + DelayUntil JSONTime + Expiration JSONTime + Payer AccountName + Published JSONTime + Sender AccountName + SenderID string + Transaction *Transaction + TransactionID Checksum256 + type ScheduledTransactionsResp struct + More string + Transactions []ScheduledTransaction + type ScopeName Name + func (n ScopeName) String() string + type SequencedTransactionResp struct + SeqNum int + type SetABI struct + ABI ABI + Account AccountName + type SetCode struct + Account AccountName + Code HexBytes + VMType byte + VMVersion byte + type SignedBlock struct + BlockExtensions []*Extension + Transactions []TransactionReceipt + func (m *SignedBlock) GetType() P2PMessageType + func (m *SignedBlock) String() string + type SignedBlockHeader struct + ProducerSignature ecc.Signature + type SignedTransaction struct + ContextFreeData []HexBytes + Signatures []ecc.Signature + func NewSignedTransaction(tx *Transaction) *SignedTransaction + func (s *SignedTransaction) Pack(compression CompressionType) (*PackedTransaction, error) + func (s *SignedTransaction) PackedTransactionAndCFD() ([]byte, []byte, error) + func (s *SignedTransaction) SignedByKeys(chainID Checksum256) (out []ecc.PublicKey, err error) + func (s *SignedTransaction) String() string + type SignedTransactionMessage struct + ContextFreeData []byte + Signatures []ecc.Signature + type Signer interface + AvailableKeys func(ctx context.Context) (out []ecc.PublicKey, err error) + ImportPrivateKey func(ctx context.Context, wifPrivKey string) error + Sign func(ctx context.Context, tx *SignedTransaction, chainID []byte, ...) (*SignedTransaction, error) + type StructDef struct + Base string + Fields []FieldDef + Name string + type SubjectiveRestriction struct + EarliestAllowedActivationTime JSONTime + Enabled bool + PreactivationRequired bool + type Symbol struct + Precision uint8 + Symbol string + func MustStringToSymbol(str string) Symbol + func NameToSymbol(name Name) (Symbol, error) + func NewSymbolFromUint64(value uint64) (out Symbol) + func StringToSymbol(str string) (Symbol, error) + func (s Symbol) MustSymbolCode() SymbolCode + func (s Symbol) String() string + func (s Symbol) SymbolCode() (SymbolCode, error) + func (s Symbol) ToName() (string, error) + func (s Symbol) ToUint64() (uint64, error) + type SymbolCode uint64 + func NameToSymbolCode(name Name) (SymbolCode, error) + func StringToSymbolCode(str string) (SymbolCode, error) + func (sc SymbolCode) MarshalJSON() (data []byte, err error) + func (sc SymbolCode) String() string + func (sc SymbolCode) ToName() string + type SyncRequestMessage struct + EndBlock uint32 + StartBlock uint32 + func (m *SyncRequestMessage) GetType() P2PMessageType + func (m *SyncRequestMessage) String() string + type TableDef struct + IndexType string + KeyNames []string + KeyTypes []string + Name TableName + Type string + type TableName Name + func (n TableName) String() string + type TimeMessage struct + Destination Tstamp + Origin Tstamp + Receive Tstamp + Transmit Tstamp + func (m *TimeMessage) GetType() P2PMessageType + func (t *TimeMessage) String() string + type TimePoint uint64 + func (f *TimePoint) UnmarshalJSON(data []byte) error + func (f TimePoint) MarshalJSON() ([]byte, error) + func (f TimePoint) String() string + type TimePointSec uint32 + func (f *TimePointSec) UnmarshalJSON(data []byte) error + func (f TimePointSec) MarshalJSON() ([]byte, error) + func (f TimePointSec) String() string + type TotalResources struct + CPUWeight Asset + NetWeight Asset + Owner AccountName + RAMBytes Int64 + type Trace struct + Console SafeString + DataAccess []DataAccess + Receiver AccountName + type Transaction struct + Actions []*Action + ContextFreeActions []*Action + Extensions []*Extension + func NewTransaction(actions []*Action, opts *TxOptions) *Transaction + func (tx *Transaction) Fill(headBlockID Checksum256, delaySecs, maxNetUsageWords uint32, ...) + func (tx *Transaction) SetExpiration(in time.Duration) + type TransactionHeader struct + DelaySec Varuint32 + Expiration JSONTime + MaxCPUUsageMS uint8 + MaxNetUsageWords Varuint32 + RefBlockNum uint16 + RefBlockPrefix uint32 + type TransactionProcessed struct + ActionTraces []Trace + DeferredTransactions []string + ID Checksum256 + Status string + type TransactionReceipt struct + Transaction TransactionWithID + type TransactionReceiptHeader struct + CPUUsageMicroSeconds uint32 + NetUsageWords Varuint32 + Status TransactionStatus + type TransactionResp struct + BlockNum uint32 + BlockTime BlockTimestamp + ID Checksum256 + LastIrreversibleBlock uint32 + Receipt struct{ ... } + Traces []ActionTrace + Transaction ProcessedTransaction + type TransactionStatus uint8 + const TransactionStatusDelayed + const TransactionStatusExecuted + const TransactionStatusExpired + const TransactionStatusHardFail + const TransactionStatusSoftFail + const TransactionStatusUnknown + func (s *TransactionStatus) UnmarshalJSON(data []byte) error + func (s TransactionStatus) MarshalJSON() (data []byte, err error) + func (s TransactionStatus) String() string + type TransactionTrace struct + AccountRamDelta ... + ActionTraces []ActionTrace + BlockNum uint32 + BlockTime BlockTimestamp + Elapsed Int64 + ErrorCode *Uint64 + Except *Except + FailedDtrxTrace *TransactionTrace + ID Checksum256 + NetUsage Uint64 + ProducerBlockID Checksum256 + Receipt *TransactionReceiptHeader + Scheduled bool + type TransactionTraceAuthSequence struct + Account AccountName + Sequence Uint64 + func (auth *TransactionTraceAuthSequence) UnmarshalJSON(data []byte) error + func (auth TransactionTraceAuthSequence) MarshalJSON() (data []byte, err error) + type TransactionWithID struct + ID Checksum256 + Packed *PackedTransaction + func (t *TransactionWithID) UnmarshalJSON(data []byte) error + func (t TransactionWithID) MarshalJSON() ([]byte, error) + type TransactionsResp struct + Transactions []SequencedTransactionResp + type Tstamp struct + func (t *Tstamp) UnmarshalJSON(data []byte) (err error) + func (t Tstamp) MarshalJSON() ([]byte, error) + type TxOptions struct + ChainID Checksum256 + Compress CompressionType + DelaySecs uint32 + HeadBlockID Checksum256 + MaxCPUUsageMS uint8 + MaxNetUsageWords uint32 + func (opts *TxOptions) FillFromChain(ctx context.Context, api *API) error + type Uint128 struct + Hi uint64 + Lo uint64 + func (i *Uint128) UnmarshalJSON(data []byte) error + func (i Uint128) BigInt() *big.Int + func (i Uint128) DecimalString() string + func (i Uint128) MarshalJSON() (data []byte, err error) + func (i Uint128) String() string + type Uint64 uint64 + func (i *Uint64) UnmarshalJSON(data []byte) error + func (i Uint64) MarshalBinary(encoder *Encoder) error + func (i Uint64) MarshalJSON() (data []byte, err error) + type UnmarshalerBinary interface + UnmarshalBinary func(decoder *Decoder) error + type Variant interface + Assign func(typeID uint, impl interface{}) + Obtain func() (typeID uint, impl interface{}) + type VariantDef struct + Name string + Types []string + type VariantDefinition struct + func NewVariantDefinition(types []VariantType) (out *VariantDefinition) + func (d *VariantDefinition) TypeID(name string) uint32 + type VariantImplFactory = func() interface + type VariantType struct + Name string + Type interface{} + type Varint32 int32 + type Varuint32 uint32 + type VoterInfo struct + IsProxy byte + LastVoteWeight Float64 + Owner AccountName + Producers []AccountName + ProxiedVoteWeight Float64 + Proxy AccountName + Staked Int64 + type WaitWeight struct + WaitSec uint32 + Weight uint16 + type WalletSignTransactionResp struct + Signatures []ecc.Signature + type WalletSigner struct + func NewWalletSigner(api *API, walletName string) *WalletSigner + func (s *WalletSigner) AvailableKeys(ctx context.Context) (out []ecc.PublicKey, err error) + func (s *WalletSigner) ImportPrivateKey(ctx context.Context, wifKey string) (err error) + func (s *WalletSigner) Sign(ctx context.Context, tx *SignedTransaction, chainID []byte, ...) (*SignedTransaction, error)