package
1.0.2
Repository: https://github.com/jfjun/substrate-rpc-go.git
Documentation: pkg.go.dev

# Functions

BigIntToUintBytes encodes the given big.Int to a big endian encoded unsigned integer byte slice of the given byte length, returning an error if the given big.Int would be bigger than the maximum number the byte slice of the given length could hold.
No description provided by the author
No description provided by the author
DecodeFromBytes decodes `bz` with the scale codec into `target`.
DecodeFromHexString decodes `str` with the scale codec into `target`.
No description provided by the author
EncodedLength returns the length of the value when encoded as a byte array.
EncodeToBytes encodes `value` with the scale codec with passed EncoderOptions, returning []byte TODO rename to Encode.
EncodeToHexString encodes `value` with the scale codec, returning a hex string (prefixed by 0x) TODO rename to EncodeToHex.
Eq compares the value of the input to see if there is a match.
Hex returns a hex string representation of the value (not of the encoded value).
HexDecodeString decodes bytes from a hex string.
HexEncode encodes bytes to a hex string.
MustHexDecodeString panics if str cannot be decoded.
NewAccountID creates a new AccountID type.
NewAccountIndex creates a new AccountIndex type.
NewAddressFromAccountID creates an Address from the given AccountID (public key).
NewAddressFromAccountIndex creates an Address from the given AccountIndex.
NewAddressFromHexAccountID creates an Address from the given hex string that contains an AccountID (public key).
NewAuthorityID creates a new AuthorityID type.
NewBytes creates a new Bytes type.
NewBytes1024 creates a new Bytes1024 type.
NewBytes128 creates a new Bytes128 type.
NewBytes16 creates a new Bytes16 type.
NewBytes2048 creates a new Bytes2048 type.
NewBytes256 creates a new Bytes256 type.
NewBytes32 creates a new Bytes32 type.
NewBytes512 creates a new Bytes512 type.
NewBytes64 creates a new Bytes64 type.
NewBytes8 creates a new Bytes8 type.
No description provided by the author
No description provided by the author
NewExtrinsic creates a new Extrinsic from the provided Call.
NewH160 creates a new H160 type.
NewH256 creates a new H256 type.
NewH512 creates a new H512 type.
NewHash creates a new Hash type.
NewHashFromHexString creates a new Hash type from a hex string.
NewMultiAddressFromAccountID creates an Address from the given AccountID (public key).
NewMultiAddressFromHexAccountID creates an Address from the given hex string that contains an AccountID (public key).
No description provided by the author
NewSignature creates a new Signature type.
NewStorageDataRaw creates a new StorageDataRaw type.
NewStorageKey creates a new StorageKey type.
NewText creates a new Text type.
NewU128 creates a new U128 type.
NewU16 creates a new U16 type.
NewU256 creates a new U256 type.
NewU32 creates a new U32 type.
NewU64 creates a new U64 type.
NewU8 creates a new U8 type.
No description provided by the author
No description provided by the author
SerDeOptionsFromMetadata returns Serialise and deserialize options from metadata.
SetSerDeOptions overrides default serialise and deserialize options.
UintBytesToBigInt decodes the given byte slice containing a big endian encoded unsigned integer to a big.Int.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
v0 is unknown.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

AccountInfo contains information of an account.
No description provided by the author
No description provided by the author
No description provided by the author
Address is a wrapper around an AccountId or an AccountIndex.
Block encoded with header and extrinsics.
Call is the extrinsic function descriptor.
Callindex is a 16 bit wrapper around the `[sectionIndex, methodIndex]` value that uniquely identifies a method.
ChainProperties contains the SS58 format, the token decimals and the token symbol.
No description provided by the author
No description provided by the author
No description provided by the author
DigestItem specifies the item in the logs of a digest.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Extrinsic is a piece of Args bundled into a block that expresses something from the "external" (i.e.
No description provided by the author
No description provided by the author
ExtrinsicEra indicates either a mortal or immortal extrinsic.
ExtrinsicPayloadV3 is a signing payload for an Extrinsic.
No description provided by the author
No description provided by the author
No description provided by the author
ExtrinsicStatus is an enum containing the result of an extrinsic submission.
No description provided by the author
Health contains the status of a node.
No description provided by the author
MortalEra for an extrinsic, indicating period and phase.
No description provided by the author
MultiSignature.
NetworkState contains the current state of the network.
PeerInfo contains information about a connected peer.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
SerDeOptions are serialise and deserialize options for types.
No description provided by the author
No description provided by the author
No description provided by the author
StorageChangeSet contains changes from storage subscriptions.
U128 is an unsigned 128-bit integer, it is represented as a big.Int in Go.
U256 is an usigned 256-bit integer, it is represented as a big.Int in Go.
No description provided by the author
No description provided by the author

# Interfaces

Hexer interface is implemented by any type that has a Hex() function returning a string.

# Type aliases

AccountID represents a public key (an 32 byte array).
AccountIndex is a shortened, variable-length encoding for an Account.
Args are the encoded arguments for a Call.
AuthorityID represents a public key (an 32 byte array).
No description provided by the author
Bytes represents byte slices.
Bytes1024 represents an 1024 byte array.
Bytes128 represents an 128 byte array.
Bytes16 represents an 16 byte array.
Bytes2048 represents an 2048 byte array.
Bytes256 represents an 256 byte array.
Bytes32 represents an 32 byte array.
Bytes512 represents an 512 byte array.
Bytes64 represents an 64 byte array.
Bytes8 represents an 8 byte array.
BytesBare represents byte slices that will be encoded bare, i.
ConsensusEngineID is a 4-byte identifier (actually a [u8; 4]) identifying the engine, e.g.
Digest contains logs.
H160 is a hash containing 160 bits (20 bytes), typically used in blocks, extrinsics and as a sane default.
H256 is a hash containing 256 bits (32 bytes), typically used in blocks, extrinsics and as a sane default.
H512 is a hash containing 512 bits (64 bytes), typically used for signature.
Hash is the default hash that is used across the system.
No description provided by the author
Signature is a H512.
No description provided by the author
No description provided by the author
Text is a string type.
U16 is an unsigned 16-bit integer.
U32 is an unsigned 32-bit integer.
U64 is an unsigned 64-bit integer.
U8 is an unsigned 8-bit integer.
No description provided by the author