Versions in this module Expand all Collapse all v0 v0.1.0 Nov 3, 2019 Changes in this version + const BlockTimestampFormat + const CompressionNone + const CompressionZlib + const GoAwayAuthentication + const GoAwayBadTransaction + const GoAwayBenignOther + const GoAwayCrazy + const GoAwayDuplicate + const GoAwayFatalOther + const GoAwayForked + const GoAwayNoReason + const GoAwaySelfConnect + const GoAwayUnlinkable + const GoAwayValidation + const GoAwayWrongChain + const GoAwayWrongVersion + const JSONTimeFormat + 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 TypeSize = struct{ ... } + func BlockNum(blockID string) uint32 + func EnableABIDecoderLogging() + func EnableABIEncoderLogging() + func EnableDecoderLogging() + func EnableEncoderLogging() + func ExtendedStringToName(s string) (val uint64, err error) + func MarshalBinary(v interface{}) ([]byte, error) + 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) 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) 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(code AccountName, action Name, payload HexBytes) (out M, err error) + func (api *API) ABIJSONToBin(code AccountName, action Name, payload M) (out HexBytes, err error) + func (api *API) CreateSnapshot() (out *CreateSnapshotResp, err error) + func (api *API) EnableKeepAlives() bool + func (api *API) FixKeepAlives() bool + func (api *API) GetABI(account AccountName) (out *GetABIResp, err error) + func (api *API) GetAccount(name AccountName) (out *AccountResp, err error) + func (api *API) GetActions(params GetActionsRequest) (out *ActionsResp, err error) + func (api *API) GetBlockByID(id string) (out *BlockResp, err error) + func (api *API) GetBlockByNum(num uint32) (out *BlockResp, err error) + func (api *API) GetBlockByNumOrID(query string) (out *SignedBlock, err error) + func (api *API) GetBlockByNumOrIDRaw(query string) (out interface{}, err error) + func (api *API) GetCode(account AccountName) (out *GetCodeResp, err error) + func (api *API) GetCodeHash(account AccountName) (out Checksum256, err error) + func (api *API) GetControlledAccounts(controllingAccount string) (out *ControlledAccountsResp, err error) + func (api *API) GetCurrencyBalance(account AccountName, symbol string, code AccountName) (out []Asset, err error) + func (api *API) GetCurrencyStats(code AccountName, symbol string) (out *GetCurrencyStatsResp, err error) + func (api *API) GetDBSize() (out *DBSizeResp, err error) + func (api *API) GetFee(tx *Transaction) (out *GetFeeResp, err error) + func (api *API) GetInfo() (out *InfoResp, err error) + func (api *API) GetIntegrityHash() (out *GetIntegrityHashResp, err error) + func (api *API) GetKeyAccounts(publicKey string) (out *KeyAccountsResp, err error) + func (api *API) GetNetConnections() (out []*NetConnectionsResp, err error) + func (api *API) GetNetStatus(host string) (out *NetStatusResp, err error) + func (api *API) GetProducers() (out *ProducersResp, err error) + func (api *API) GetPublicKeys() (out []*ecc.PublicKey, err error) + func (api *API) GetRawABI(params GetRawABIRequest) (out *GetRawABIResp, err error) + func (api *API) GetRawCodeAndABI(account AccountName) (out *GetRawCodeAndABIResp, err error) + func (api *API) GetRequiredKeys(tx *Transaction) (out *GetRequiredKeysResp, err error) + func (api *API) GetScheduledTransactions() (out *ScheduledTransactionsResp, err error) + func (api *API) GetScheduledTransactionsWithBounds(lower_bound string, limit uint32) (out *ScheduledTransactionsResp, err error) + func (api *API) GetTableByScope(params GetTableByScopeRequest) (out *GetTableByScopeResp, err error) + func (api *API) GetTableRows(params GetTableRowsRequest) (out *GetTableRowsResp, err error) + func (api *API) GetTransaction(id string) (out *TransactionResp, err error) + func (api *API) GetTransactionRaw(id string) (out json.RawMessage, err error) + func (api *API) GetTransactions(name AccountName) (out *TransactionsResp, err error) + func (api *API) IsProducerPaused() (out bool, err error) + func (api *API) ListKeys(walletNames ...string) (out []*ecc.PrivateKey, err error) + func (api *API) ListWallets(walletName ...string) (out []string, err error) + func (api *API) NetConnect(host string) (out NetConnectResp, err error) + func (api *API) NetDisconnect(host string) (out NetDisconnectResp, err error) + func (api *API) ProducerPause() error + func (api *API) ProducerResume() error + func (api *API) PushTransaction(tx *PackedTransaction) (out *PushTransactionFullResp, err error) + func (api *API) PushTransactionRaw(tx *PackedTransaction) (out json.RawMessage, err error) + func (api *API) SetCustomGetRequiredKeys(f func(tx *Transaction) ([]ecc.PublicKey, error)) + func (api *API) SetSigner(s Signer) + func (api *API) SignPushActions(a ...*Action) (out *PushTransactionFullResp, err error) + func (api *API) SignPushActionsWithOpts(actions []*Action, opts *TxOptions) (out *PushTransactionFullResp, err error) + func (api *API) SignPushTransaction(tx *Transaction, chainID Checksum256, compression CompressionType) (out *PushTransactionFullResp, err error) + func (api *API) SignTransaction(tx *Transaction, chainID Checksum256, compression CompressionType) (*SignedTransaction, *PackedTransaction, error) + func (api *API) WalletCreate(walletName string) (err error) + func (api *API) WalletImportKey(walletName, wifPrivKey string) (err error) + func (api *API) WalletLock(walletName string) (err error) + func (api *API) WalletLockAll() (err error) + func (api *API) WalletOpen(walletName string) (err error) + func (api *API) WalletPublicKeys() (out []ecc.PublicKey, err error) + func (api *API) WalletSetTimeout(timeout int32) (err error) + func (api *API) WalletSignTransaction(tx *SignedTransaction, chainID []byte, pubKeys ...ecc.PublicKey) (out *WalletSignTransactionResp, err error) + func (api *API) WalletUnlock(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 AccountName Name + func AN(in string) AccountName + 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 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 + type ActionResp struct + AccountSeq JSONInt64 + BlockNum uint32 + BlockTime BlockTimestamp + GlobalSeq JSONInt64 + Trace ActionTrace + type ActionTrace struct + AccountRAMDeltas []*AccountRAMDelta + Action *Action + ActionOrdinal uint32 + BlockNum uint32 + BlockTime BlockTimestamp + ClosestUnnotifiedAncestorActionOrdinal uint32 + Console string + ContextFree bool + CreatorActionOrdinal uint32 + Elapsed Int64 + ErrorCode *Uint64 + Except *Except + InlineTraces []ActionTrace + ProducerBlockID Checksum256 + Receipt *ActionTraceReceipt + Receiver AccountName + TransactionID Checksum256 + type ActionTraceReceipt struct + ABISequence Uint64 + ActionDigest string + AuthSequence []TransactionTraceAuthSequence + CodeSequence Uint64 + 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 (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 Blob string + func (b Blob) Data() ([]byte, error) + func (b Blob) String() string + type BlockHeader struct + ActionMRoot Checksum256 + Confirmed uint16 + HeaderExtensions []*Extension + NewProducers *OptionalProducerSchedule + Previous Checksum256 + Producer AccountName + ScheduleVersion uint32 + Timestamp BlockTimestamp + TransactionMRoot Checksum256 + func (b *BlockHeader) BlockID() (Checksum256, error) + func (b *BlockHeader) BlockNumber() uint32 + type BlockResp struct + BlockNum uint32 + ID Checksum256 + RefBlockPrefix uint32 + type BlockState struct + ActivatedProtocolFeatures map[string][]HexBytes + ActiveSchedule *ProducerSchedule + BlockID string + BlockNum uint32 + BlockSigningKey ecc.PublicKey + BlockrootMerkle *MerkleRoot + ConfirmCount []uint32 + DPoSIrreversibleBlockNum uint32 + DPoSProposedIrreversibleBlockNum uint32 + PendingSchedule *PendingSchedule + ProducerToLastImpliedIRB [][2]EOSNameOrUint32 + ProducerToLastProduced [][2]EOSNameOrUint32 + SignedBlock *SignedBlock + 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 Decoder struct + func NewDecoder(data []byte) *Decoder + func (d *Decoder) Decode(v interface{}) (err error) + func (d *Decoder) DecodeActions(decode bool) + func (d *Decoder) DecodeP2PMessage(decode bool) + 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) 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) 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) 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) + type DeferredTransaction struct + DelayUntil JSONTime + Sender AccountName + SenderID uint32 + type DelegatedBandwidth struct + CPUWeight Asset + From AccountName + NetWeight Asset + To AccountName + type EOSNameOrUint32 interface + type Encoder struct + Order binary.ByteOrder + func NewEncoder(w io.Writer) *Encoder + func (e *Encoder) Encode(v interface{}) (err error) + type Except struct + Code int + Message string + Name string + Stack []*ExceptLogMessage + type ExceptLogContext struct + Context *ExceptLogContext + File string + Hostname string + Level string + Line int + Method string + ThreadName string + Timestamp JSONTime + type ExceptLogMessage struct + Context ExceptLogContext + Data json.RawMessage + Format string + type ExtendedAsset struct + Asset Asset + Contract AccountName + type Extension struct + Data HexBytes + Type uint16 + func (e *Extension) MarshalJSON() ([]byte, 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 GetABIResp struct + ABI ABI + AccountName AccountName + 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 GetFeeResp struct + Fee 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 bool + Rows json.RawMessage + type GetTableRowsRequest struct + Code string + EncodeType string + Index string + JSON bool + KeyType string + Limit uint32 + LowerBound string + 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) 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 + func (f *JSONFloat64) UnmarshalJSON(data []byte) error + 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) AvailableKeys() (out []ecc.PublicKey, err error) + func (b *KeyBag) ImportFromFile(path string) error + func (b *KeyBag) ImportPrivateKey(wifPrivKey string) (err error) + func (b *KeyBag) Sign(tx *SignedTransaction, chainID []byte, requiredKeys ...ecc.PublicKey) (*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 MerkleRoot struct + ActiveNodes []string + NodeCount uint32 + type MessageReflectTypes struct + Name string + ReflectType reflect.Type + type MyStruct struct + Balance Uint64 + type Name 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 OptionalProducerSchedule struct + 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 PendingSchedule struct + Schedule *ProducerSchedule + ScheduleHash HexBytes + 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 + type ProcessedTransaction struct + Transaction SignedTransaction + type Producer struct + IsActive int + LastClaimTime JSONFloat64 + Location int + Owner string + ProducerKey string + TotalVotes float64 + URL string + UnpaidBlocks int + type ProducerChange struct + type ProducerKey struct + AccountName AccountName + BlockSigningKey ecc.PublicKey + type ProducerSchedule struct + Producers []ProducerKey + Version uint32 + type ProducersResp struct + Producers []Producer + 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 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 + 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() (out []ecc.PublicKey, err error) + ImportPrivateKey func(wifPrivKey string) error + Sign func(tx *SignedTransaction, chainID []byte, requiredKeys ...ecc.PublicKey) (*SignedTransaction, error) + type StructDef struct + Base string + Fields []FieldDef + Name string + 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 + type TimeMessage struct + Destination Tstamp + Origin Tstamp + Receive Tstamp + Transmit Tstamp + func (m *TimeMessage) GetType() P2PMessageType + func (t *TimeMessage) String() string + type TimePoint uint64 + type TimePointSec uint32 + type TotalResources struct + CPUWeight Asset + NetWeight Asset + Owner AccountName + RAMBytes Int64 + type Trace struct + Console string + DataAccess []DataAccess + Receiver AccountName + type Transaction struct + Actions []*Action + ContextFreeActions []*Action + Extensions []*Extension + Fee Asset + 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(api *API) error + type Uint128 struct + Hi uint64 + Lo uint64 + func (i *Uint128) UnmarshalJSON(data []byte) error + 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) MarshalJSON() (data []byte, err error) + type VariantDef struct + Name string + Types []string + type Varint32 int32 + type Varuint32 uint32 + type VoterInfo struct + IsProxy byte + LastVoteWeight JSONFloat64 + Owner AccountName + Producers []AccountName + ProxiedVoteWeight JSONFloat64 + 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() (out []ecc.PublicKey, err error) + func (s *WalletSigner) ImportPrivateKey(wifKey string) (err error) + func (s *WalletSigner) Sign(tx *SignedTransaction, chainID []byte, requiredKeys ...ecc.PublicKey) (*SignedTransaction, error)