Documentation ¶
Index ¶
- Constants
- func DecodeAddress(hex_address string) (common.Address, error)
- func DecodePrivKey(privkey string) (*ecdsa.PrivateKey, error)
- func DecodeTx(unsign_tx string) (*types.Transaction, error)
- func DeriveTxFrom(tx *types.Transaction) (string, error)
- func GenTrasferABI(to string, amount *big.Int) string
- func SignTx(unsign_tx string, privkey string, chainid uint64) (string, error)
- type Builder
- type Coin
- type TokenBuilder
- func (b *TokenBuilder) Build() ([]byte, error)
- func (b *TokenBuilder) SetAmount(amount *big.Int)
- func (b *TokenBuilder) SetContract(contract string)
- func (b *TokenBuilder) SetFrom(from string)
- func (b *TokenBuilder) SetLimit(limit uint64)
- func (b *TokenBuilder) SetNonce(nonce uint64)
- func (b *TokenBuilder) SetPrice(price *big.Int)
- func (b *TokenBuilder) SetTo(to string)
Constants ¶
View Source
const TokenABI = "" /* 4091-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
func DecodePrivKey ¶
func DecodePrivKey(privkey string) (*ecdsa.PrivateKey, error)
func DeriveTxFrom ¶
func DeriveTxFrom(tx *types.Transaction) (string, error)
Types ¶
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
func NewBuilder ¶
func NewBuilder() *Builder
func (*Builder) SetBalance ¶
type TokenBuilder ¶
type TokenBuilder struct {
// contains filtered or unexported fields
}
func NewTokenBuilder ¶
func NewTokenBuilder() *TokenBuilder
func (*TokenBuilder) Build ¶
func (b *TokenBuilder) Build() ([]byte, error)
func (*TokenBuilder) SetAmount ¶
func (b *TokenBuilder) SetAmount(amount *big.Int)
func (*TokenBuilder) SetContract ¶
func (b *TokenBuilder) SetContract(contract string)
func (*TokenBuilder) SetFrom ¶
func (b *TokenBuilder) SetFrom(from string)
func (*TokenBuilder) SetLimit ¶
func (b *TokenBuilder) SetLimit(limit uint64)
func (*TokenBuilder) SetNonce ¶
func (b *TokenBuilder) SetNonce(nonce uint64)
func (*TokenBuilder) SetPrice ¶
func (b *TokenBuilder) SetPrice(price *big.Int)
func (*TokenBuilder) SetTo ¶
func (b *TokenBuilder) SetTo(to string)
Click to show internal directories.
Click to hide internal directories.