Documentation ¶
Index ¶
- func ConvertMultiAddress(receiver string) (types.MultiAddress, error)
- func ConvertToBondAmount(input int64) *big.Int
- func CreateChannel() chan types.Hash
- func CreateExtrinsic(api *SubstrateAPI, ext_call string, keyring signature.KeyringPair, AppID int, ...) (extrinsic.Extrinsic, error)
- func EncodeToHex(hash interface{}) (string, error)
- func EventParser(api *SubstrateAPI, h types.Hash, eventParse string)
- func ExistentialDeposit(api *SubstrateAPI)
- func FormatBN(n BigInt) string
- func GetData(hash types.Hash, api *SubstrateAPI, txHash types.Hash) error
- func KeyringFromSeed(seed string) (signature.KeyringPair, error)
- func KeyringPairFromSecret(seed string, keyType uint16) (signature.KeyringPair, error)
- func NewCall(api *SubstrateAPI, callName string, args ...interface{}) (types.Call, error)
- func NewExtrinsic(api *SubstrateAPI, ext_call string, keyring signature.KeyringPair, AppID int, ...) (types.Hash, error)
- func NewExtrinsicWatch(api *SubstrateAPI, ext_call string, keyring signature.KeyringPair, ...) error
- func NewHashFromHexString(hexStr string) (types.Hash, error)
- func NewMultiAddressFromAccountID(accountID []byte) (types.MultiAddress, error)
- func NewMultiAddressFromHexAccountID(hexStr string) (types.MultiAddress, error)
- func NewU128(value *big.Int) types.U128
- func NewU256(value *big.Int) types.U256
- func NewU32(value uint32) types.U32
- func NewU64(value uint64) types.U64
- func NewU8(value uint8) types.U8
- func ParseDataSubmitted(events []*parser.Event)
- func RandToken(n int) (string, error)
- type BigInt
- type Bytes
- type DispatchFeeModifier
- type Payee
- type SubstrateAPI
- type WaitFor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertMultiAddress ¶
func ConvertMultiAddress(receiver string) (types.MultiAddress, error)
func ConvertToBondAmount ¶
func CreateChannel ¶
func CreateExtrinsic ¶
func CreateExtrinsic(api *SubstrateAPI, ext_call string, keyring signature.KeyringPair, AppID int, arg ...interface{}) (extrinsic.Extrinsic, error)
func EncodeToHex ¶
func EventParser ¶
func EventParser(api *SubstrateAPI, h types.Hash, eventParse string)
func ExistentialDeposit ¶
func ExistentialDeposit(api *SubstrateAPI)
func KeyringFromSeed ¶
func KeyringFromSeed(seed string) (signature.KeyringPair, error)
func KeyringPairFromSecret ¶
func KeyringPairFromSecret(seed string, keyType uint16) (signature.KeyringPair, error)
func NewCall ¶
func NewCall(api *SubstrateAPI, callName string, args ...interface{}) (types.Call, error)
func NewExtrinsic ¶
func NewExtrinsic(api *SubstrateAPI, ext_call string, keyring signature.KeyringPair, AppID int, arg ...interface{}) (types.Hash, error)
func NewExtrinsicWatch ¶
func NewMultiAddressFromAccountID ¶
func NewMultiAddressFromAccountID(accountID []byte) (types.MultiAddress, error)
func NewMultiAddressFromHexAccountID ¶
func NewMultiAddressFromHexAccountID(hexStr string) (types.MultiAddress, error)
func ParseDataSubmitted ¶
Types ¶
type BigInt ¶
func (*BigInt) UnmarshalJSON ¶
UnmarshalJSON defines custom unmarshalling for BigInt.
type DispatchFeeModifier ¶
type DispatchFeeModifier struct { WeightMaximumFee types.U128 WeightFeeDivider types.U32 WeightFeeMultiplier types.U32 }
type Payee ¶
type Payee uint8
type SubstrateAPI ¶
func NewSDK ¶
func NewSDK(url string) (*SubstrateAPI, error)
func (*SubstrateAPI) Close ¶
func (api *SubstrateAPI) Close()
Click to show internal directories.
Click to hide internal directories.