Documentation ¶
Index ¶
- func GenerateKeyPair() (privKey, pubKey string)
- func HexToChecksum256(data string) types.Checksum256
- func HexToHexBytes(data string) types.HexBytes
- func NewAccountTransaction(creator, newAccount string, pubKey ecc.PublicKey, ...) *types.Transaction
- func NewBuyRAMBytesTransaction(from, to string, bytes uint64, opts *types.TxOptions) *types.Transaction
- func NewBuyRamTransaction(from, to string, quantity types.Asset, opts *types.TxOptions) *types.Transaction
- func NewContractTransaction(name, from, to, memo string, quantity types.Asset, opts *types.TxOptions) *types.Transaction
- func NewDelegateBWTransaction(from, to string, stakeCPU, stakeNet types.Asset, doTransfer bool, ...) *types.Transaction
- func NewSellRAMTransaction(account string, bytes uint64, opts *types.TxOptions) *types.Transaction
- func NewTransaction(actions []*types.Action, opts *types.TxOptions) *types.Transaction
- func NewTransactionWithParams(from, to, memo string, quantity types.Asset, opts *types.TxOptions) *types.Transaction
- func NewUndelegateBWTransaction(from, to string, unstakeCPU, unstakeNet types.Asset, opts *types.TxOptions) *types.Transaction
- func SigDigest(chainID, payload, contextFreeData []byte) []byte
- func SignTransaction(wifKey string, tx *types.Transaction, chainID types.Checksum256, ...) (*types.SignedTransaction, *types.PackedTransaction, error)
- func SignTransactionWithWIFs(wifs []string, tx *types.Transaction, chainID types.Checksum256, ...) (*types.SignedTransaction, *types.PackedTransaction, error)
- type Signer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateKeyPair ¶
func GenerateKeyPair() (privKey, pubKey string)
func HexToChecksum256 ¶
func HexToChecksum256(data string) types.Checksum256
func HexToHexBytes ¶
func NewAccountTransaction ¶
func NewAccountTransaction(creator, newAccount string, pubKey ecc.PublicKey, buyRAMAmount, cpuStake, netStake types.Asset, doTransfer bool, opts *types.TxOptions) *types.Transaction
NewAccountTransaction creates a new account
func NewBuyRAMBytesTransaction ¶
func NewBuyRAMBytesTransaction(from, to string, bytes uint64, opts *types.TxOptions) *types.Transaction
NewBuyRAMBytesTransaction creates a new EOS BuyRAMBytes transaction.
func NewBuyRamTransaction ¶
func NewContractTransaction ¶
func NewDelegateBWTransaction ¶
func NewDelegateBWTransaction(from, to string, stakeCPU, stakeNet types.Asset, doTransfer bool, opts *types.TxOptions) *types.Transaction
NewDelegateBWTransaction creates a new EOS DelegateBW transaction.
func NewSellRAMTransaction ¶
NewSellRAMTransaction creates a new EOS SellRAM transaction.
func NewTransaction ¶
NewTransaction creates a new EOS Transaction object, ready to sign.
func NewUndelegateBWTransaction ¶
func NewUndelegateBWTransaction(from, to string, unstakeCPU, unstakeNet types.Asset, opts *types.TxOptions) *types.Transaction
NewUndelegateBWTransaction creates a new EOS UndelegateBW transaction.
func SignTransaction ¶
func SignTransaction(wifKey string, tx *types.Transaction, chainID types.Checksum256, compression types.CompressionType) (*types.SignedTransaction, *types.PackedTransaction, error)
SignTransaction signs a transaction with the given WIF.
func SignTransactionWithWIFs ¶
func SignTransactionWithWIFs(wifs []string, tx *types.Transaction, chainID types.Checksum256, compression types.CompressionType) (*types.SignedTransaction, *types.PackedTransaction, error)
SignTransactionWithWIFs signs a transaction with the given WIFs.
Types ¶
type Signer ¶
type Signer struct {
Keys []*ecc.PrivateKey `json:"keys"`
}
func NewSigner ¶
func NewSigner(keys []*ecc.PrivateKey) *Signer
func NewSignerFromWIFs ¶
Click to show internal directories.
Click to hide internal directories.