Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type SubstrateClient ¶
type SubstrateClient struct { Conn *connection.Connection ChainID *big.Int // contains filtered or unexported fields }
func NewSubstrateClient ¶
func NewSubstrateClient(conn *connection.Connection, key *signature.KeyringPair, chainID *big.Int, tip uint64) *SubstrateClient
func (*SubstrateClient) LatestBlock ¶
func (c *SubstrateClient) LatestBlock() (*big.Int, error)
func (*SubstrateClient) TrackExtrinsic ¶
func (c *SubstrateClient) TrackExtrinsic(extHash types.Hash, sub *author.ExtrinsicStatusSubscription) error
func (*SubstrateClient) Transact ¶
func (c *SubstrateClient) Transact(method string, args ...interface{}) (types.Hash, *author.ExtrinsicStatusSubscription, error)
Transact constructs and submits an extrinsic to call the method with the given arguments. All args are passed directly into GSRPC. GSRPC types are recommended to avoid serialization inconsistencies.
Click to show internal directories.
Click to hide internal directories.