Versions in this module Expand all Collapse all v6 v6.0.0 Oct 10, 2019 Changes in this version + const IDTagAccount + const IDTagChannel + const IDTagCommitment + const IDTagContract + const IDTagName + const IDTagOracle + const ObjectTagAccount + const ObjectTagChannel + const ObjectTagChannelCloseMutualTransaction + const ObjectTagChannelCloseSoloTransaction + const ObjectTagChannelCreateTransaction + const ObjectTagChannelDepositTransaction + const ObjectTagChannelForceProgressTransaction + const ObjectTagChannelOffChainTransaction + const ObjectTagChannelOffChainUpdateCallContract + const ObjectTagChannelOffChainUpdateCreateContract + const ObjectTagChannelOffChainUpdateDeposit + const ObjectTagChannelOffChainUpdateTransfer + const ObjectTagChannelOffChainUpdateWithdrawal + const ObjectTagChannelSettleTransaction + const ObjectTagChannelSlashTransaction + const ObjectTagChannelSnapshotTransaction + const ObjectTagChannelWithdrawTransaction + const ObjectTagContract + const ObjectTagContractCall + const ObjectTagContractCallTransaction + const ObjectTagContractCreateTransaction + const ObjectTagGeneralizedAccountAttachTransaction + const ObjectTagGeneralizedAccountMetaTransaction + const ObjectTagLightMicroBlock + const ObjectTagMicroBody + const ObjectTagNameServiceClaimTransaction + const ObjectTagNameServiceCommitment + const ObjectTagNameServiceName + const ObjectTagNameServicePreclaimTransaction + const ObjectTagNameServiceRevokeTransaction + const ObjectTagNameServiceTransferTransaction + const ObjectTagNameServiceUpdateTransaction + const ObjectTagOracle + const ObjectTagOracleExtendTransaction + const ObjectTagOracleQuery + const ObjectTagOracleQueryTransaction + const ObjectTagOracleRegisterTransaction + const ObjectTagOracleResponseTransaction + const ObjectTagPoi + const ObjectTagSignedTransaction + const ObjectTagSpendTransaction + func CalculateFee(tx TransactionFeeCalculable) (err error) + func Hash(tx *SignedTx) (txhash string, err error) + func SerializeTx(tx rlp.Encoder) (string, error) + func TransactionTypes() map[uint]Transaction + func VerifySignedTx(accountID string, txSigned string, networkID string) (valid bool, err error) + type ContractCallTx struct + AbiVersion uint16 + AccountNonce uint64 + Amount *big.Int + CallData string + CallerID string + ContractID string + Fee *big.Int + GasLimit *big.Int + GasPrice *big.Int + TTL uint64 + func NewContractCallTx(CallerID string, AccountNonce uint64, ContractID string, ...) *ContractCallTx + func (tx *ContractCallTx) DecodeRLP(s *rlp.Stream) (err error) + func (tx *ContractCallTx) EncodeRLP(w io.Writer) (err error) + func (tx *ContractCallTx) GetFee() *big.Int + func (tx *ContractCallTx) GetGasLimit() *big.Int + func (tx *ContractCallTx) JSON() (string, error) + func (tx *ContractCallTx) SetFee(f *big.Int) + type ContractCreateTx struct + AbiVersion uint16 + AccountNonce uint64 + Amount *big.Int + CallData string + Code string + Deposit *big.Int + Fee *big.Int + GasLimit *big.Int + GasPrice *big.Int + OwnerID string + TTL uint64 + VMVersion uint16 + func NewContractCreateTx(OwnerID string, AccountNonce uint64, Code string, VMVersion, AbiVersion uint16, ...) *ContractCreateTx + func (tx *ContractCreateTx) ContractID() (string, error) + func (tx *ContractCreateTx) DecodeRLP(s *rlp.Stream) (err error) + func (tx *ContractCreateTx) EncodeRLP(w io.Writer) (err error) + func (tx *ContractCreateTx) GetFee() *big.Int + func (tx *ContractCreateTx) GetGasLimit() *big.Int + func (tx *ContractCreateTx) JSON() (string, error) + func (tx *ContractCreateTx) SetFee(f *big.Int) + type GAAttachTx struct + AbiVersion uint16 + AccountNonce uint64 + AuthFunc []byte + CallData string + Code string + Fee *big.Int + GasLimit *big.Int + GasPrice *big.Int + OwnerID string + TTL uint64 + VMVersion uint16 + func NewGAAttachTx(OwnerID string, AccountNonce uint64, Code string, AuthFunc []byte, ...) *GAAttachTx + func (tx *GAAttachTx) DecodeRLP(s *rlp.Stream) (err error) + func (tx *GAAttachTx) EncodeRLP(w io.Writer) (err error) + func (tx *GAAttachTx) GetFee() *big.Int + func (tx *GAAttachTx) GetGasLimit() *big.Int + func (tx *GAAttachTx) SetFee(f *big.Int) + type GAMetaTx struct + AbiVersion uint16 + AccountID string + AuthData string + Fee *big.Int + GasLimit *big.Int + GasPrice *big.Int + TTL uint64 + Tx *SignedTx + func NewGAMetaTx(AccountID string, AuthData string, AbiVersion uint16, GasLimit *big.Int, ...) *GAMetaTx + func (tx *GAMetaTx) DecodeRLP(s *rlp.Stream) (err error) + func (tx *GAMetaTx) EncodeRLP(w io.Writer) (err error) + func (tx *GAMetaTx) GetFee() *big.Int + func (tx *GAMetaTx) GetGasLimit() *big.Int + func (tx *GAMetaTx) SetFee(f *big.Int) + type NameClaimTx struct + AccountID string + AccountNonce uint64 + Fee *big.Int + Name string + NameSalt *big.Int + TTL uint64 + func NewNameClaimTx(accountID, name string, nameSalt, fee *big.Int, ttl, accountNonce uint64) *NameClaimTx + func (tx *NameClaimTx) DecodeRLP(s *rlp.Stream) (err error) + func (tx *NameClaimTx) EncodeRLP(w io.Writer) (err error) + func (tx *NameClaimTx) GetFee() *big.Int + func (tx *NameClaimTx) GetGasLimit() *big.Int + func (tx *NameClaimTx) JSON() (string, error) + func (tx *NameClaimTx) SetFee(f *big.Int) + type NamePointer struct + ID string + Key string + func NewNamePointer(key string, id string) *NamePointer + func (np *NamePointer) DecodeRLP(s *rlp.Stream) (err error) + func (np *NamePointer) EncodeRLP(w io.Writer) (err error) + func (np *NamePointer) Swagger() *models.NamePointer + type NamePreclaimTx struct + AccountID string + AccountNonce uint64 + CommitmentID string + Fee *big.Int + TTL uint64 + func NewNamePreclaimTx(accountID, commitmentID string, fee *big.Int, ttl, accountNonce uint64) *NamePreclaimTx + func (tx *NamePreclaimTx) DecodeRLP(s *rlp.Stream) (err error) + func (tx *NamePreclaimTx) EncodeRLP(w io.Writer) (err error) + func (tx *NamePreclaimTx) GetFee() *big.Int + func (tx *NamePreclaimTx) GetGasLimit() *big.Int + func (tx *NamePreclaimTx) JSON() (string, error) + func (tx *NamePreclaimTx) SetFee(f *big.Int) + type NameRevokeTx struct + AccountID string + AccountNonce uint64 + Fee *big.Int + NameID string + TTL uint64 + func NewNameRevokeTx(accountID, name string, fee *big.Int, ttl, accountNonce uint64) *NameRevokeTx + func (tx *NameRevokeTx) DecodeRLP(s *rlp.Stream) (err error) + func (tx *NameRevokeTx) EncodeRLP(w io.Writer) (err error) + func (tx *NameRevokeTx) GetFee() *big.Int + func (tx *NameRevokeTx) GetGasLimit() *big.Int + func (tx *NameRevokeTx) JSON() (string, error) + func (tx *NameRevokeTx) SetFee(f *big.Int) + type NameTransferTx struct + AccountID string + AccountNonce uint64 + Fee *big.Int + NameID string + RecipientID string + TTL uint64 + func NewNameTransferTx(AccountID, NameID, RecipientID string, Fee *big.Int, TTL, AccountNonce uint64) *NameTransferTx + func (tx *NameTransferTx) DecodeRLP(s *rlp.Stream) (err error) + func (tx *NameTransferTx) EncodeRLP(w io.Writer) (err error) + func (tx *NameTransferTx) GetFee() *big.Int + func (tx *NameTransferTx) GetGasLimit() *big.Int + func (tx *NameTransferTx) JSON() (string, error) + func (tx *NameTransferTx) SetFee(f *big.Int) + type NameUpdateTx struct + AccountID string + AccountNonce uint64 + ClientTTL uint64 + Fee *big.Int + NameID string + NameTTL uint64 + Pointers []*NamePointer + TTL uint64 + func NewNameUpdateTx(accountID, nameID string, pointers []string, nameTTL, clientTTL uint64, ...) *NameUpdateTx + func (tx *NameUpdateTx) DecodeRLP(s *rlp.Stream) (err error) + func (tx *NameUpdateTx) EncodeRLP(w io.Writer) (err error) + func (tx *NameUpdateTx) GetFee() *big.Int + func (tx *NameUpdateTx) GetGasLimit() *big.Int + func (tx *NameUpdateTx) JSON() (string, error) + func (tx *NameUpdateTx) SetFee(f *big.Int) + type OracleExtendTx struct + AccountNonce uint64 + Fee *big.Int + OracleID string + OracleTTLType uint64 + OracleTTLValue uint64 + TTL uint64 + func NewOracleExtendTx(oracleID string, accountNonce, oracleTTLType, oracleTTLValue uint64, ...) *OracleExtendTx + func (tx *OracleExtendTx) DecodeRLP(s *rlp.Stream) (err error) + func (tx *OracleExtendTx) EncodeRLP(w io.Writer) (err error) + func (tx *OracleExtendTx) GetFee() *big.Int + func (tx *OracleExtendTx) GetGasLimit() *big.Int + func (tx *OracleExtendTx) JSON() (string, error) + func (tx *OracleExtendTx) SetFee(f *big.Int) + type OracleQueryTx struct + AccountNonce uint64 + Fee *big.Int + OracleID string + Query string + QueryFee *big.Int + QueryTTLType uint64 + QueryTTLValue uint64 + ResponseTTLType uint64 + ResponseTTLValue uint64 + SenderID string + TTL uint64 + func NewOracleQueryTx(SenderID string, AccountNonce uint64, OracleID, Query string, ...) *OracleQueryTx + func (tx *OracleQueryTx) DecodeRLP(s *rlp.Stream) (err error) + func (tx *OracleQueryTx) EncodeRLP(w io.Writer) (err error) + func (tx *OracleQueryTx) GetFee() *big.Int + func (tx *OracleQueryTx) GetGasLimit() *big.Int + func (tx *OracleQueryTx) JSON() (string, error) + func (tx *OracleQueryTx) SetFee(f *big.Int) + type OracleRegisterTx struct + AbiVersion uint16 + AccountID string + AccountNonce uint64 + Fee *big.Int + OracleTTLType uint64 + OracleTTLValue uint64 + QueryFee *big.Int + QuerySpec string + ResponseSpec string + TTL uint64 + func NewOracleRegisterTx(accountID string, accountNonce uint64, querySpec, responseSpec string, ...) *OracleRegisterTx + func (tx *OracleRegisterTx) DecodeRLP(s *rlp.Stream) (err error) + func (tx *OracleRegisterTx) EncodeRLP(w io.Writer) (err error) + func (tx *OracleRegisterTx) GetFee() *big.Int + func (tx *OracleRegisterTx) GetGasLimit() *big.Int + func (tx *OracleRegisterTx) JSON() (string, error) + func (tx *OracleRegisterTx) SetFee(f *big.Int) + type OracleRespondTx struct + AccountNonce uint64 + Fee *big.Int + OracleID string + QueryID string + Response string + ResponseTTLType uint64 + ResponseTTLValue uint64 + TTL uint64 + func NewOracleRespondTx(OracleID string, AccountNonce uint64, QueryID string, Response string, ...) *OracleRespondTx + func (tx *OracleRespondTx) DecodeRLP(s *rlp.Stream) (err error) + func (tx *OracleRespondTx) EncodeRLP(w io.Writer) (err error) + func (tx *OracleRespondTx) GetFee() *big.Int + func (tx *OracleRespondTx) GetGasLimit() *big.Int + func (tx *OracleRespondTx) JSON() (string, error) + func (tx *OracleRespondTx) SetFee(f *big.Int) + type SignedTx struct + Signatures [][]byte + Tx rlp.Encoder + func NewSignedTx(Signatures [][]byte, tx rlp.Encoder) (s *SignedTx) + func SignHashTx(kp *account.Account, tx Transaction, networkID string) (signedTx *SignedTx, txhash, signature string, err error) + func (tx *SignedTx) DecodeRLP(s *rlp.Stream) (err error) + func (tx *SignedTx) EncodeRLP(w io.Writer) (err error) + type SpendTx struct + Amount *big.Int + Fee *big.Int + Nonce uint64 + Payload []byte + RecipientID string + SenderID string + TTL uint64 + func NewSpendTx(senderID, recipientID string, amount, fee *big.Int, payload []byte, ...) *SpendTx + func (tx *SpendTx) DecodeRLP(s *rlp.Stream) (err error) + func (tx *SpendTx) EncodeRLP(w io.Writer) (err error) + func (tx *SpendTx) GetFee() *big.Int + func (tx *SpendTx) GetGasLimit() *big.Int + func (tx *SpendTx) JSON() (string, error) + func (tx *SpendTx) SetFee(f *big.Int) + type Transaction interface + func DeserializeTx(rawRLP []byte) (Transaction, error) + func DeserializeTxStr(txRLP string) (Transaction, error) + func GetTransactionType(rawRLP []byte) (tx Transaction, err error) + type TransactionFeeCalculable interface + GetFee func() *big.Int + GetGasLimit func() *big.Int + SetFee func(*big.Int) Other modules containing this package github.com/aeternity/aepp-sdk-go/v7 github.com/aeternity/aepp-sdk-go/v8 github.com/aeternity/aepp-sdk-go/v9