Versions in this module Expand all Collapse all v0 v0.1.7 Nov 19, 2026 v0.1.6 Nov 15, 2026 Changes in this version + type AddressTransactions struct + List []TxView + Page int + PageSize int + Pending []TxView + Total int64 + TotalPages int + type RPCMethodSpec struct + Description string + Name string + Params []string + type TokenBalance struct + Balance *big.Int + Holder string + TokenID string + type TokenView struct + Cap *big.Int + Decimals int + Issuer string + Name string + Symbol string + TokenID string + TotalSupply *big.Int v0.1.5 Nov 13, 2026 v0.1.4 Nov 11, 2026 v0.1.3 Nov 11, 2026 v0.1.2 Nov 9, 2026 v0.1.1 Nov 1, 2026 v0.1.0 Oct 28, 2026 Changes in this version + const Decimals + const DefaultPath + const HDSalt + const LimitBlockRange + const LimitPageSize + const LimitRPCBatch + const LimitRPCBodyBytes + const LimitSubscriptions + const LimitWaitForFinalityMs + const LimitWatchedAddresses + const MaxMemoBytes + const MinFee + const MinTransfer + const NetworkID + const NoDecimals + const RPCInternal + const RPCInvalidParams + const RPCInvalidRequest + const RPCLimit + const RPCMethodNotFound + const RPCNotFound + const RPCNotSynchronized + const RPCParseError + const RPCRateLimited + const RPCRejected + const SpecAPI + const SpecNode + const SpecProtocol + const SpecVectors + const Ticker + const TokenCreateFee + const ValidatorDeposit + const ValidatorFee + func AddAmounts(a, b string) (string, error) + func CompareAmounts(a, b string) (int, error) + func DoubleSHA256(data []byte) []byte + func FormatJNZ(amount string, o FormatOptions) (string, error) + func FromScaled(scaled *big.Int) string + func GenerateMnemonic(strength int) (string, error) + func HashPreimage(preimage []byte) string + func HexToBytes(s string) ([]byte, error) + func IsRPCCode(err error, code int) bool + func IsValidAddress(address string) bool + func IsValidAmount(s string) bool + func IsValidPrivateKey(privateKeyHex string) bool + func Keccak256(data []byte) []byte + func MnemonicFromEntropy(entropy []byte) (string, error) + func MnemonicToEntropy(mnemonic string) ([]byte, error) + func MnemonicToSeed(mnemonic, passphrase string) []byte + func NormalizeAddress(address string) (string, error) + func NormalizeAmount(s string) (string, error) + func NormalizeMnemonic(mnemonic string) string + func ParseJNZ(input string) (string, error) + func PrivateToPublic(privateKeyHex string) (string, error) + func PublicKeyToAddress(compressedPublicKey []byte) (string, error) + func RESTErrorFrom(status int, body []byte, retryAfter string) error + func RPCErrorFrom(code int, message string, data json.RawMessage, transport string) error + func SignHash(hashHex, privateKeyHex string) (string, error) + func SubAmounts(a, b string) (string, error) + func ToChecksumAddress(address string) string + func ToScaled(amount string) (*big.Int, error) + func ValidateMnemonic(mnemonic string) bool + func VerifyHash(hashHex, signatureBase64, publicKeyHex string) bool + func Wordlist() []string + type APIError struct + Body json.RawMessage + Message string + Status int + Type string + func (e *APIError) Error() string + type Account struct + func AccountFromMnemonic(mnemonic, passphrase string) (*Account, error) + func AccountFromPrivateKey(privateKeyHex string) (*Account, error) + func AccountFromSeed(seed []byte, path string) (*Account, error) + func NewRandomAccount() (*Account, error) + func (a *Account) Address() string + func (a *Account) ChecksumAddress() string + func (a *Account) GoString() string + func (a *Account) PrivateKeyHex() string + func (a *Account) PublicKeyHex() string + func (a *Account) Sign(hashHex string) (string, error) + func (a *Account) SignTx(tx *UnsignedTx) (*SignedTx, error) + func (a *Account) String() string + func (a *Account) Verify(hashHex, signatureBase64 string) bool + type AccountView struct + Address string + Balance Amount + CommittedBalance Amount + CommittedNonce int64 + IsValidatorWallet bool + NextNonce int64 + PendingCount int + type Amount string + func (a *Amount) UnmarshalJSON(b []byte) error + func (a Amount) MarshalJSON() ([]byte, error) + func (a Amount) Scaled() (*big.Int, error) + func (a Amount) String() string + type BlockView struct + EpochIndex *int64 + Hash string + Height int64 + PreviousHash string + Producer string + Signature string + Timestamp int64 + Transactions []TxView + TransactionsCount int + Type string + Validators []string + type Common struct + Fee string + From string + NetworkID string + Nonce int64 + Timestamp int64 + type ExitValidator struct + ValidatorKey string + type FeeEstimate struct + Fee Amount + FeeMarket bool + Kind string + Rule string + type FinalityTimeoutError struct + Hash string + Last *TxView + func (e *FinalityTimeoutError) Error() string + type FormatOptions struct + Decimals int + Group bool + KeepZeros bool + NoTicker bool + type HDNode struct + ChainCode []byte + Priv []byte + func DeriveChild(node HDNode, index uint32) (HDNode, error) + func DerivePath(seed []byte, path string) (HDNode, error) + func SeedToMasterKey(seed []byte) HDNode + type NetworkError struct + Err error + Message string + func (e *NetworkError) Error() string + func (e *NetworkError) Unwrap() error + type NodeInfo struct + APIVersion string + ChainSpecDigest string + Faucet bool + GenesisHash string + Host string + NetworkID string + NodeKey string + Port int + ProtocolVersion string + SyncStatus string + Version string + type NonceMismatchError struct + Address string + Expected int64 + Got int64 + Known bool + func (e *NonceMismatchError) Unwrap() error + type NotFoundError struct + func (e *NotFoundError) Unwrap() error + type NotSynchronizedError struct + Message string + Transport string + func (e *NotSynchronizedError) Error() string + type Page struct + List []T + Page int + PageSize int + Total int64 + TotalPages int + type RPCError struct + Code int + Data json.RawMessage + Message string + func (e *RPCError) Error() string + type RateLimitedError struct + Message string + RetryAfter time.Duration + Transport string + func (e *RateLimitedError) Error() string + type Receipt struct + Results json.RawMessage + Successful bool + type RegisterValidator struct + Amount string + ValidatorKey string + type SendResult struct + Hash string + Status string + type SignedTx struct + Hash string + SenderPublicKey string + Signature string + Unsigned *UnsignedTx + func (s *SignedTx) Body() map[string]any + func (s *SignedTx) RESTPath() string + func (s *SignedTx) RPCMethod() string + type Token struct + Amount string + Cap string + Decimals int + Name string + Recipient string + Symbol string + TokenID string + type TokenOp byte + const TokenBurn + const TokenCreate + const TokenMint + const TokenSetCap + const TokenTransfer + func (o TokenOp) String() string + type Transaction struct + Amount *Amount + BlockHash *string + Data *string + Fee Amount + Hash string + Nonce *int64 + Raw json.RawMessage + RecipientAddress *string + SenderAddress string + SenderPublicKey string + SenderSignature string + Timestamp int64 + TokenID *string + ValidatorKey *string + func (t *Transaction) Final() bool + func (t *Transaction) UnmarshalJSON(b []byte) error + type Transfer struct + Amount string + Data string + To string + type TxRejectedError struct + HTTPStatus int + Message string + RPCCode int + Transport string + Type string + func (e *TxRejectedError) Error() string + type TxType string + const TxExitValidator + const TxRegisterValidator + const TxToken + const TxTransfer + type TxView struct + Amount *Amount + BlockHash *string + BlockHeight *int64 + Cap *Amount + Data *string + Decimals *int + Fee *Amount + Hash string + Name *string + Nonce *int64 + Op *string + Receipt *Receipt + Recipient *string + RecipientAddress *string + SenderAddress *string + SenderPublicKey *string + SenderSignature *string + Status string + Symbol *string + TimedOut bool + Timestamp *int64 + TokenAmount *Amount + TokenID *string + Type *string + ValidatorKey *string + type UnsignedTx struct + Fee string + Fields map[string]any + NetworkID string + Nonce int64 + Payload []byte + SenderAddress string + Timestamp int64 + Type TxType + func NewExitValidator(o ExitValidator) (*UnsignedTx, error) + func NewRegisterValidator(o RegisterValidator) (*UnsignedTx, error) + func NewTokenBurn(o Token) (*UnsignedTx, error) + func NewTokenCreate(o Token) (*UnsignedTx, error) + func NewTokenMint(o Token) (*UnsignedTx, error) + func NewTokenSetCap(o Token) (*UnsignedTx, error) + func NewTokenTransfer(o Token) (*UnsignedTx, error) + func NewTransfer(o Transfer) (*UnsignedTx, error) + func (t *UnsignedTx) Hash() string + func (t *UnsignedTx) Preimage() []byte + func (t *UnsignedTx) WithSignature(signatureBase64, senderPublicKeyHex string) *SignedTx + type ValidationError struct + Messages []string + func (e *ValidationError) Unwrap() error + type Validator struct + Address string + NodeKey string + type ValidatorInfo struct + Active *bool + Banned *bool + Exited *bool + Key string + RegisteredAt *int64 + WalletAddress *string