Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Builder ¶
type Builder struct {
ChainID ChainID
}
func NewBuilder ¶
func (*Builder) NewTransaction ¶
func (b *Builder) NewTransaction(data DataInterface) (Interface, error)
type DataInterface ¶
type DataInterface interface {
// contains filtered or unexported methods
}
type EncodeInterface ¶
type Interface ¶
type Interface interface {
EncodeInterface
SetSignatureType(signatureType SignatureType) Interface
SetMultiSignatureType() Interface
SetNonce(nonce uint64) Interface
SetGasCoin(name string) Interface
SetGasPrice(price uint8) Interface
SetPayload(payload []byte) Interface
SetServiceData(serviceData []byte) Interface
Sign(prKey string, multisigPrKeys ...string) (SignedTransaction, error)
// contains filtered or unexported methods
}
type SendData ¶
func NewSendData ¶
func NewSendData() *SendData
type SignatureMulti ¶
type SignatureType ¶
type SignatureType byte
const ( SignatureTypeSingle SignatureType SignatureTypeMulti )
type SignedTransaction ¶
type SignedTransaction interface {
EncodeInterface
GetTransaction() *Transaction
Fee() *big.Int
Hash() (string, error)
Data() DataInterface
Signature() (signatureInterface, error)
SignatureData() []byte
SimpleSignatureData() ([]byte, error)
Sign(prKey string, multisigPrKeys ...string) (SignedTransaction, error)
}
Click to show internal directories.
Click to hide internal directories.