Versions in this module Expand all Collapse all v1 v1.0.2 Mar 26, 2019 Changes in this version + const Base58c + const Base64c + const ConfigFilename + 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 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 + const PrefixAccountPubkey + const PrefixBlockProofOfFraudHash + const PrefixBlockStateHash + const PrefixBlockTransactionHash + const PrefixChannel + const PrefixCommitment + const PrefixContractByteArray + const PrefixContractPubkey + const PrefixKeyBlockHash + const PrefixMicroBlockHash + const PrefixName + const PrefixOraclePubkey + const PrefixOracleQuery + const PrefixOracleQueryID + const PrefixOracleResponse + const PrefixPeerPubkey + const PrefixProofOfInclusion + const PrefixSeparator + const PrefixSignature + const PrefixState + const PrefixStateTrees + const PrefixTransaction + const PrefixTransactionHash + var Config = ProfileConfig + func Decode(in string) (out []byte, err error) + func Encode(prefix HashPrefix, data []byte) string + func GetWalletPath(path string) (walletPath string, err error) + func KeystoreSeal(account *Account, password string) (j []byte, e error) + func NameClaimTx(accountID, name string, nameSalt, fee uint64, ttl, nonce uint64) (rlpRawMsg []byte, err error) + func NamePreclaimTx(accountID, commitmentID string, fee uint64, ttl, nonce uint64) (rlpRawMsg []byte, err error) + func NameUpdateTx(accountID, nameID string, pointers []string, nameTTL, clientTTL uint64, ...) (rlpRawMsg []byte, err error) + func OracleExtendTx(oracleID string, accountNonce, ttlType, ttlValue uint64, fee utils.BigInt, ...) (rlpRawMsg []byte, err error) + func OracleRegisterTx(accountID string, accountNonce uint64, querySpec, responseSpec string, ...) (rlpRawMsg []byte, err error) + func Pp(data ...interface{}) + func PpI(indentSize int, data ...interface{}) + func PpT(indentSize int, title string) + func PrintError(code string, e *models.Error) + func PrintObject(title string, i interface{}) + func SignEncodeTx(kp *Account, txRaw []byte, networkID string) (signedEncodedTx, signedEncodedTxHash, signature string, err error) + func SignEncodeTxStr(kp *Account, tx string, networkID string) (signedEncodedTx, signedEncodedTxHash, signature string, err error) + func SpendTx(senderID, recipientID string, amount, fee utils.BigInt, payload string, ...) (rlpRawMsg []byte, err error) + func SpendTxStr(sender, recipient string, amount, fee utils.BigInt, message string, ...) (base64Tx string, err error) + func StoreAccountToKeyStoreFile(account *Account, password, walletName string) (filePath string, err error) + func Verify(address string, message, signature []byte) (valid bool, err error) + func VerifySignedTx(accountID string, txSigned string, networkID string) (valid bool, err error) + type Account struct + Address string + SigningKey ed25519.PrivateKey + func AccountFromHexString(hexPrivateKey string) (account *Account, err error) + func KeystoreOpen(data []byte, password string) (account *Account, err error) + func LoadAccountFromKeyStoreFile(keyFile, password string) (account *Account, err error) + func NewAccount() (account *Account, err error) + func (account *Account) Sign(message []byte) (signature []byte) + func (account *Account) SigningKeyToHexString() (signingKeyHex string) + type Ae struct + func NewCli(nodeURL string, debug bool) *Ae + func (ae *Ae) APIGetAccount(accountID string) (account *models.Account, err error) + func (ae *Ae) APIGetCurrentKeyBlock() (kb *models.KeyBlock, err error) + func (ae *Ae) APIGetHeight() (height uint64, err error) + func (ae *Ae) APIGetKeyBlockByHash(keyBlockID string) (txs *models.KeyBlock, err error) + func (ae *Ae) APIGetMicroBlockHeaderByHash(microBlockID string) (txs *models.MicroBlockHeader, err error) + func (ae *Ae) APIGetMicroBlockTransactionsByHash(microBlockID string) (txs *models.GenericTxs, err error) + func (ae *Ae) APIGetNameEntryByName(name string) (nameEntry *models.NameEntry, err error) + func (ae *Ae) APIGetOracleByPubkey(pubkey string) (oracle *models.RegisteredOracle, err error) + func (ae *Ae) APIGetStatus() (status *models.Status, err error) + func (ae *Ae) APIGetTopBlock() (kb *models.KeyBlockOrMicroBlockHeader, err error) + func (ae *Ae) APIGetTransactionByHash(txHash string) (tx *models.GenericSignedTx, err error) + func (ae *Ae) APIPostTransaction(signedEncodedTx, signedEncodedTxHash string) (err error) + func (ae *Ae) BroadcastTransaction(txSignedBase64 string) (err error) + func (ae *Ae) GetNextNonce(accountID string) (nextNonce uint64, err error) + func (ae *Ae) GetTTL(offset uint64) (height uint64, err error) + func (ae *Ae) GetTTLNonce(accountID string, offset uint64) (txTTL, accountNonce uint64, err error) + func (ae *Ae) PrintGenerationByHeight(height uint64) + func (ae *Ae) WaitForTransactionUntilHeight(height uint64, txHash string) (blockHeight uint64, blockHash, microBlockHash string, ...) + func (ae *Ae) WithAccount(account *Account) *Ae + type Aens struct + func (n *Aens) NameClaimTxStr(name string, nameSalt, txTTL, accountNonce uint64) (tx string, err error) + func (n *Aens) NamePreclaimTxStr(name string, txTTL, accountNonce uint64) (tx string, nameSalt uint64, err error) + func (n *Aens) NameUpdateTxStr(name string, targetAddress string, txTTL, accountNonce uint64) (tx string, err error) + type AensConfig struct + ClaimFee uint64 + ClientTTL uint64 + NameTTL uint64 + PreClaimFee uint64 + UpdateFee uint64 + type ClientConfig struct + Contracts ContractConfig + DefaultKey string + Fee utils.BigInt + Names AensConfig + NativeTransactions bool + Offline bool + Oracles OracleConfig + StateChannels StateChannelConfig + TTL uint64 + type Contract struct + type ContractConfig struct + Deposit uint64 + Gas uint64 + GasPrice uint64 + VMVersion uint64 + type HashPrefix string + func GetHashPrefix(hash string) (p HashPrefix) + type NodeConfig struct + NetworkID string + URL string + URLChannels string + URLInternal string + type ObjectEncoding string + type Oracle struct + func (o *Oracle) OracleRegisterTxStr(querySpec, responseSpec string, queryFee utils.BigInt, ...) (tx string, err error) + type OracleConfig struct + QueryFee utils.BigInt + VMVersion uint64 + type ProfileConfig struct + Client ClientConfig + Name string + Node NodeConfig + Tuning TuningConfig + type StateChannelConfig struct + ChannelReserve uint64 + LockPeriod uint64 + type TuningConfig struct + ChainPollInteval int64 + ChainTimeout int64 + CryptoKdfMemlimit uint32 + CryptoKdfOpslimit uint32 + CryptoKdfThreads uint8 + OutputFormatJSON bool + type Wallet struct Other modules containing this package github.com/aeternity/aepp-sdk-go/v4 github.com/aeternity/aepp-sdk-go/v5 github.com/aeternity/aepp-sdk-go/v6 github.com/aeternity/aepp-sdk-go/v7 github.com/aeternity/aepp-sdk-go/v8 github.com/aeternity/aepp-sdk-go/v9