Documentation
¶
Index ¶
- Constants
- func EncodeToBytes(value interface{}) ([]byte, error)
- func NewMethodTransfer(pubkey string, amount *big.Int) (*polkadotTransaction.MethodTransfer, error)
- func VerifyAndCombineTransaction(transferCode, emptyTrans, signature string) (string, bool)
- type TxStruct
- func (ts TxStruct) CreateEmptyTransactionAndMessage(transferCode string) (string, string, error)
- func (ts TxStruct) GetSignedTransaction(transfer_code, signature string) (string, error)
- func (tx TxStruct) NewTxPayLoad(transfer_code string) (*polkadotTransaction.TxPayLoad, error)
- func (tx TxStruct) ToJSONString() string
Constants ¶
View Source
const ( //github.com/centrifuge/go-substrate-rpc-client ACA_Balannce_Transfer = "030000" KAR_Balannce_Transfer = "0a0000" )
Variables ¶
This section is empty.
Functions ¶
func EncodeToBytes ¶
func NewMethodTransfer ¶
func NewMethodTransfer(pubkey string, amount *big.Int) (*polkadotTransaction.MethodTransfer, error)
Types ¶
type TxStruct ¶
type TxStruct struct { SenderPubkey string `json:"sender_pubkey"` RecipientPubkey string `json:"recipient_pubkey"` Amount *big.Int `json:"amount"` Nonce uint64 `json:"nonce"` Fee *big.Int `json:"fee"` BlockHeight uint64 `json:"block_height"` BlockHash string `json:"block_hash"` GenesisHash string `json:"genesis_hash"` SpecVersion uint32 `json:"spec_version"` TxVersion uint32 `json:"txVersion"` }
func NewTxStructFromJSON ¶
func (TxStruct) CreateEmptyTransactionAndMessage ¶
func (TxStruct) GetSignedTransaction ¶
func (TxStruct) NewTxPayLoad ¶
func (tx TxStruct) NewTxPayLoad(transfer_code string) (*polkadotTransaction.TxPayLoad, error)
func (TxStruct) ToJSONString ¶
Click to show internal directories.
Click to hide internal directories.