Documentation ¶
Index ¶
- Constants
- func AddressForAccount(accountID AccountID) (string, error)
- func AddressForContract(contractID ContractID) (string, error)
- func AddressForFile(fileID FileID) (string, error)
- func CheckAddressLen(address []byte) error
- func DecodeAddress(address string) ([]byte, error)
- func Keccak256(data ...[]byte) []byte
- type AccountID
- type Argument
- type CallParams
- func (cp *CallParams) AddAddress(address []byte) error
- func (cp *CallParams) AddAddressArray(addresses [][]byte) error
- func (cp *CallParams) AddAddressString(address string) error
- func (cp *CallParams) AddAddressStringArray(addresses []string) error
- func (cp *CallParams) AddBigInt(value big.Int, width int) error
- func (cp *CallParams) AddBitIntArray(value []big.Int, width int) error
- func (cp *CallParams) AddBool(b bool) error
- func (cp *CallParams) AddByteArray(param [][]byte) error
- func (cp *CallParams) AddByteFixedArray(param [][]byte, fixedLen int) error
- func (cp *CallParams) AddBytes(param []byte) error
- func (cp *CallParams) AddFixedAddressArray(addresses [][]byte, fixedLen int) error
- func (cp *CallParams) AddFixedAddressStringArray(addresses []string, fixedLen int) error
- func (cp *CallParams) AddFixedBigIntArray(value []big.Int, width int, fixedLen int) error
- func (cp *CallParams) AddFixedByteArray(param [][]byte, byteLen int) error
- func (cp *CallParams) AddFixedByteFixedArray(param [][]byte, fixedByteLen int, fixedLen int) error
- func (cp *CallParams) AddFixedBytes(param []byte, fixedLen int) error
- func (cp *CallParams) AddFixedIntArray(value []int, width int, fixedLen int) error
- func (cp *CallParams) AddFixedStringArray(param []string, fixedLen int) error
- func (cp *CallParams) AddFixedUintArray(value []uint, width int, fixedLen int) error
- func (cp *CallParams) AddFunction(address []byte, selector []byte) error
- func (cp *CallParams) AddFunctionFS(address string, selector FunctionSelector) error
- func (cp *CallParams) AddFunctionString(address string, selector string) error
- func (cp *CallParams) AddInt(value int64, width int) error
- func (cp *CallParams) AddIntArray(value []int, width int) error
- func (cp *CallParams) AddString(param string) error
- func (cp *CallParams) AddStringArray(param []string) error
- func (cp *CallParams) AddUint(value uint64, width int) error
- func (cp *CallParams) AddUintArray(value []uint, width int) error
- func (cp *CallParams) ToProto() ([]byte, error)
- type Client
- func (client Client) Account(id AccountID) PartialAccountMessage
- func (client Client) AppendFile(fileID FileID, content []byte) TransactionFileAppend
- func (client Client) CallContract(contract ContractID) TransactionContractCall
- func (client Client) CallContractQuery(contract ContractID, gas int64, params []byte, maxResultSize int64) QueryContractCall
- func (client Client) Close()
- func (client Client) CreateAccount() TransactionCryptoCreate
- func (client Client) CreateContract() TransactionContractCreate
- func (client Client) CreateFile() TransactionFileCreate
- func (client Client) CryptoTransfer() TransactionCryptoTransferdeprecated
- func (client Client) DeleteFile(fileID FileID) TransactionFileDelete
- func (client Client) FileContents(fileID FileID) QueryFileGetContents
- func (client Client) GetAccountBalance(id AccountID) QueryCryptoGetAccountBalancedeprecated
- func (client Client) GetTransactionReceipt(id *TransactionID) QueryTransactionGetReceiptdeprecated
- func (client Client) SetNode(node AccountID)
- func (client Client) SetOperator(operator AccountID, secretCallback func() SecretKey)
- func (client Client) Transaction(id TransactionID) PartialTransactionMessage
- func (client Client) TransferCrypto() TransactionCryptoTransfer
- func (client Client) UpdateContract() TransactionContractUpdate
- func (client Client) UpdateFile(fileID FileID) TransactionFileUpdate
- type ContractFunctionResult
- func (fr *ContractFunctionResult) GetAddress(valIndex int) []byte
- func (fr *ContractFunctionResult) GetAddressArray(valIndex int) []string
- func (fr *ContractFunctionResult) GetBigInt(valIndex int) big.Int
- func (fr *ContractFunctionResult) GetBool(valIndex int) bool
- func (fr *ContractFunctionResult) GetByteArray(valIndex int) [][]byte
- func (fr *ContractFunctionResult) GetBytes(valIndex int) ([]byte, error)
- func (fr *ContractFunctionResult) GetInt(valIndex int) int
- func (fr *ContractFunctionResult) GetLong(valIndex int) int64
- func (fr *ContractFunctionResult) GetString(valIndex int) (string, error)
- type ContractID
- type ContractLogInfo
- type Duration
- type FileID
- type FunctionSelector
- type PartialAccountMessage
- type PartialTransactionMessage
- type PublicKey
- type QueryContractCall
- type QueryCryptoGetAccountBalance
- type QueryFileGetContents
- type QueryTransactionGetReceipt
- type RawTransaction
- type SecretKey
- type Signature
- type Status
- type Timestamp
- type TransactionContractCall
- func (tx TransactionContractCall) Amount(amount uint64) TransactionContractCall
- func (tx TransactionContractCall) Execute() (TransactionID, error)
- func (tx TransactionContractCall) Fee(fee uint64) transaction
- func (tx TransactionContractCall) Gas(gas uint64) TransactionContractCall
- func (tx TransactionContractCall) Memo(memo string) transaction
- func (tx TransactionContractCall) Node(id AccountID) transaction
- func (tx TransactionContractCall) Operator(id AccountID) transaction
- func (tx TransactionContractCall) Parameters(params []byte) TransactionContractCall
- func (tx TransactionContractCall) Sign(key SecretKey) RawTransaction
- type TransactionContractCreate
- func (tx TransactionContractCreate) AdminKey(public PublicKey) TransactionContractCreate
- func (tx TransactionContractCreate) AutoRenew(period Duration) TransactionContractCreate
- func (tx TransactionContractCreate) ConstructorParams(params []byte) TransactionContractCreate
- func (tx TransactionContractCreate) Execute() (TransactionID, error)
- func (tx TransactionContractCreate) Fee(fee uint64) transaction
- func (tx TransactionContractCreate) File(file FileID) TransactionContractCreate
- func (tx TransactionContractCreate) Gas(gas int64) TransactionContractCreate
- func (tx TransactionContractCreate) InitialBalance(balance int64) TransactionContractCreate
- func (tx TransactionContractCreate) Memo(memo string) transaction
- func (tx TransactionContractCreate) Node(id AccountID) transaction
- func (tx TransactionContractCreate) Operator(id AccountID) transaction
- func (tx TransactionContractCreate) ProxyAccount(proxyId AccountID) TransactionContractCreate
- func (tx TransactionContractCreate) Sign(key SecretKey) RawTransaction
- type TransactionContractUpdate
- func (tx TransactionContractUpdate) AdminKey(public PublicKey) TransactionContractUpdate
- func (tx TransactionContractUpdate) Execute() (TransactionID, error)
- func (tx TransactionContractUpdate) Fee(fee uint64) transaction
- func (tx TransactionContractUpdate) File(file FileID) TransactionContractUpdate
- func (tx TransactionContractUpdate) Memo(memo string) transaction
- func (tx TransactionContractUpdate) Node(id AccountID) transaction
- func (tx TransactionContractUpdate) Operator(id AccountID) transaction
- func (tx TransactionContractUpdate) ProxyAccount(proxyId AccountID) TransactionContractUpdate
- func (tx TransactionContractUpdate) Sign(key SecretKey) RawTransaction
- type TransactionCryptoCreate
- func (tx TransactionCryptoCreate) Execute() (TransactionID, error)
- func (tx TransactionCryptoCreate) Fee(fee uint64) transaction
- func (tx TransactionCryptoCreate) InitialBalance(balance uint64) TransactionCryptoCreate
- func (tx TransactionCryptoCreate) Key(public PublicKey) TransactionCryptoCreate
- func (tx TransactionCryptoCreate) Memo(memo string) TransactionCryptoCreate
- func (tx TransactionCryptoCreate) Node(id AccountID) TransactionCryptoCreate
- func (tx TransactionCryptoCreate) Operator(id AccountID) TransactionCryptoCreate
- func (tx TransactionCryptoCreate) Sign(key SecretKey) RawTransaction
- type TransactionCryptoTransfer
- func (tx TransactionCryptoTransfer) Execute() (TransactionID, error)
- func (tx TransactionCryptoTransfer) Fee(fee uint64) transaction
- func (tx TransactionCryptoTransfer) Memo(memo string) TransactionCryptoTransfer
- func (tx TransactionCryptoTransfer) Node(id AccountID) TransactionCryptoTransfer
- func (tx TransactionCryptoTransfer) Operator(id AccountID) TransactionCryptoTransfer
- func (tx TransactionCryptoTransfer) Sign(key SecretKey) RawTransaction
- func (tx TransactionCryptoTransfer) Transfer(id AccountID, amount int64) TransactionCryptoTransfer
- type TransactionFileAppend
- func (tx TransactionFileAppend) Execute() (TransactionID, error)
- func (tx TransactionFileAppend) Fee(fee uint64) transaction
- func (tx TransactionFileAppend) Memo(memo string) transaction
- func (tx TransactionFileAppend) Node(id AccountID) transaction
- func (tx TransactionFileAppend) Operator(id AccountID) transaction
- func (tx TransactionFileAppend) Sign(key SecretKey) RawTransaction
- type TransactionFileCreate
- func (tx TransactionFileCreate) Content(content []byte) TransactionFileCreate
- func (tx TransactionFileCreate) Execute() (TransactionID, error)
- func (tx TransactionFileCreate) Expiration(exp Timestamp) TransactionFileCreate
- func (tx TransactionFileCreate) Fee(fee uint64) transaction
- func (tx TransactionFileCreate) Key(public PublicKey) TransactionFileCreate
- func (tx TransactionFileCreate) Memo(memo string) transaction
- func (tx TransactionFileCreate) Node(id AccountID) transaction
- func (tx TransactionFileCreate) Operator(id AccountID) transaction
- func (tx TransactionFileCreate) Sign(key SecretKey) RawTransaction
- type TransactionFileDelete
- func (tx TransactionFileDelete) Execute() (TransactionID, error)
- func (tx TransactionFileDelete) Fee(fee uint64) transaction
- func (tx TransactionFileDelete) Memo(memo string) transaction
- func (tx TransactionFileDelete) Node(id AccountID) transaction
- func (tx TransactionFileDelete) Operator(id AccountID) transaction
- func (tx TransactionFileDelete) Sign(key SecretKey) RawTransaction
- type TransactionFileUpdate
- func (tx TransactionFileUpdate) Execute() (TransactionID, error)
- func (tx TransactionFileUpdate) Fee(fee uint64) transaction
- func (tx TransactionFileUpdate) Key(public PublicKey) TransactionFileUpdate
- func (tx TransactionFileUpdate) Memo(memo string) transaction
- func (tx TransactionFileUpdate) Node(id AccountID) transaction
- func (tx TransactionFileUpdate) Operator(id AccountID) transaction
- func (tx TransactionFileUpdate) Sign(key SecretKey) RawTransaction
- type TransactionID
- type TransactionReceipt
Constants ¶
View Source
const ( SELECTOR_LEN = 4 SELECTOR_LEN_HEX = 8 )
View Source
const ( ADDRESS_LEN = 20 ADDRESS_LEN_HEX = ADDRESS_LEN * 2 )
Variables ¶
This section is empty.
Functions ¶
func AddressForAccount ¶ added in v0.4.0
func AddressForContract ¶ added in v0.4.0
func AddressForContract(contractID ContractID) (string, error)
func AddressForFile ¶ added in v0.4.0
func CheckAddressLen ¶ added in v0.4.0
func DecodeAddress ¶ added in v0.4.0
Types ¶
type AccountID ¶
type AccountID struct { Realm int64 `json:"realm"` Shard int64 `json:"shard"` Account int64 `json:"account"` }
func AccountIDFromAddress ¶ added in v0.4.0
func AccountIDFromString ¶
func NewAccountID
deprecated
type CallParams ¶ added in v0.4.0
type CallParams struct { Args []Argument // contains filtered or unexported fields }
func NewCallParams ¶ added in v0.4.0
func NewCallParams(fs *FunctionSelector) *CallParams
func NewConstructorCallParams ¶ added in v0.4.0
func NewConstructorCallParams() *CallParams
func (*CallParams) AddAddress ¶ added in v0.4.0
func (cp *CallParams) AddAddress(address []byte) error
func (*CallParams) AddAddressArray ¶ added in v0.4.0
func (cp *CallParams) AddAddressArray(addresses [][]byte) error
func (*CallParams) AddAddressString ¶ added in v0.4.0
func (cp *CallParams) AddAddressString(address string) error
func (*CallParams) AddAddressStringArray ¶ added in v0.4.0
func (cp *CallParams) AddAddressStringArray(addresses []string) error
func (*CallParams) AddBigInt ¶ added in v0.4.0
func (cp *CallParams) AddBigInt(value big.Int, width int) error
func (*CallParams) AddBitIntArray ¶ added in v0.4.0
func (cp *CallParams) AddBitIntArray(value []big.Int, width int) error
func (*CallParams) AddBool ¶ added in v0.4.0
func (cp *CallParams) AddBool(b bool) error
func (*CallParams) AddByteArray ¶ added in v0.4.0
func (cp *CallParams) AddByteArray(param [][]byte) error
func (*CallParams) AddByteFixedArray ¶ added in v0.4.0
func (cp *CallParams) AddByteFixedArray(param [][]byte, fixedLen int) error
func (*CallParams) AddBytes ¶ added in v0.4.0
func (cp *CallParams) AddBytes(param []byte) error
func (*CallParams) AddFixedAddressArray ¶ added in v0.4.0
func (cp *CallParams) AddFixedAddressArray(addresses [][]byte, fixedLen int) error
func (*CallParams) AddFixedAddressStringArray ¶ added in v0.4.0
func (cp *CallParams) AddFixedAddressStringArray(addresses []string, fixedLen int) error
func (*CallParams) AddFixedBigIntArray ¶ added in v0.4.0
func (*CallParams) AddFixedByteArray ¶ added in v0.4.0
func (cp *CallParams) AddFixedByteArray(param [][]byte, byteLen int) error
func (*CallParams) AddFixedByteFixedArray ¶ added in v0.4.0
func (cp *CallParams) AddFixedByteFixedArray(param [][]byte, fixedByteLen int, fixedLen int) error
func (*CallParams) AddFixedBytes ¶ added in v0.4.0
func (cp *CallParams) AddFixedBytes(param []byte, fixedLen int) error
func (*CallParams) AddFixedIntArray ¶ added in v0.4.0
func (cp *CallParams) AddFixedIntArray(value []int, width int, fixedLen int) error
func (*CallParams) AddFixedStringArray ¶ added in v0.4.0
func (cp *CallParams) AddFixedStringArray(param []string, fixedLen int) error
func (*CallParams) AddFixedUintArray ¶ added in v0.4.0
func (cp *CallParams) AddFixedUintArray(value []uint, width int, fixedLen int) error
func (*CallParams) AddFunction ¶ added in v0.4.0
func (cp *CallParams) AddFunction(address []byte, selector []byte) error
func (*CallParams) AddFunctionFS ¶ added in v0.4.0
func (cp *CallParams) AddFunctionFS(address string, selector FunctionSelector) error
func (*CallParams) AddFunctionString ¶ added in v0.4.0
func (cp *CallParams) AddFunctionString(address string, selector string) error
func (*CallParams) AddInt ¶ added in v0.4.0
func (cp *CallParams) AddInt(value int64, width int) error
func (*CallParams) AddIntArray ¶ added in v0.4.0
func (cp *CallParams) AddIntArray(value []int, width int) error
func (*CallParams) AddString ¶ added in v0.4.0
func (cp *CallParams) AddString(param string) error
func (*CallParams) AddStringArray ¶ added in v0.4.0
func (cp *CallParams) AddStringArray(param []string) error
func (*CallParams) AddUint ¶ added in v0.4.0
func (cp *CallParams) AddUint(value uint64, width int) error
func (*CallParams) AddUintArray ¶ added in v0.4.0
func (cp *CallParams) AddUintArray(value []uint, width int) error
func (*CallParams) ToProto ¶ added in v0.4.0
func (cp *CallParams) ToProto() ([]byte, error)
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (Client) Account ¶
func (client Client) Account(id AccountID) PartialAccountMessage
func (Client) AppendFile ¶ added in v0.4.0
func (client Client) AppendFile(fileID FileID, content []byte) TransactionFileAppend
func (Client) CallContract ¶ added in v0.4.0
func (client Client) CallContract(contract ContractID) TransactionContractCall
func (Client) CallContractQuery ¶ added in v0.4.0
func (client Client) CallContractQuery(contract ContractID, gas int64, params []byte, maxResultSize int64) QueryContractCall
func (Client) CreateAccount ¶
func (client Client) CreateAccount() TransactionCryptoCreate
func (Client) CreateContract ¶ added in v0.4.0
func (client Client) CreateContract() TransactionContractCreate
func (Client) CreateFile ¶ added in v0.4.0
func (client Client) CreateFile() TransactionFileCreate
func (Client) CryptoTransfer
deprecated
func (client Client) CryptoTransfer() TransactionCryptoTransfer
Deprecated: Use Client.TransferCrypto() instead
func (Client) DeleteFile ¶ added in v0.4.0
func (client Client) DeleteFile(fileID FileID) TransactionFileDelete
func (Client) FileContents ¶ added in v0.4.0
func (client Client) FileContents(fileID FileID) QueryFileGetContents
func (Client) GetAccountBalance
deprecated
func (client Client) GetAccountBalance(id AccountID) QueryCryptoGetAccountBalance
Deprecated: Use Client.Account(id).Balance() instead
func (Client) GetTransactionReceipt
deprecated
func (client Client) GetTransactionReceipt(id *TransactionID) QueryTransactionGetReceipt
Deprecated: Use Client.Transaction(id).Receipt() instead
func (Client) SetOperator ¶
func (Client) Transaction ¶
func (client Client) Transaction(id TransactionID) PartialTransactionMessage
func (Client) TransferCrypto ¶
func (client Client) TransferCrypto() TransactionCryptoTransfer
func (Client) UpdateContract ¶ added in v0.4.0
func (client Client) UpdateContract() TransactionContractUpdate
func (Client) UpdateFile ¶ added in v0.4.0
func (client Client) UpdateFile(fileID FileID) TransactionFileUpdate
type ContractFunctionResult ¶ added in v0.4.0
type ContractFunctionResult struct { Contract ContractID Result []byte Error string Bloom []byte GasUsed uint64 LogInfo []ContractLogInfo }
func (*ContractFunctionResult) GetAddress ¶ added in v0.4.0
func (fr *ContractFunctionResult) GetAddress(valIndex int) []byte
func (*ContractFunctionResult) GetAddressArray ¶ added in v0.4.0
func (fr *ContractFunctionResult) GetAddressArray(valIndex int) []string
func (*ContractFunctionResult) GetBigInt ¶ added in v0.4.0
func (fr *ContractFunctionResult) GetBigInt(valIndex int) big.Int
func (*ContractFunctionResult) GetBool ¶ added in v0.4.0
func (fr *ContractFunctionResult) GetBool(valIndex int) bool
func (*ContractFunctionResult) GetByteArray ¶ added in v0.4.0
func (fr *ContractFunctionResult) GetByteArray(valIndex int) [][]byte
func (*ContractFunctionResult) GetBytes ¶ added in v0.4.0
func (fr *ContractFunctionResult) GetBytes(valIndex int) ([]byte, error)
func (*ContractFunctionResult) GetInt ¶ added in v0.4.0
func (fr *ContractFunctionResult) GetInt(valIndex int) int
func (*ContractFunctionResult) GetLong ¶ added in v0.4.0
func (fr *ContractFunctionResult) GetLong(valIndex int) int64
type ContractID ¶
type ContractID struct { Realm int64 `json:"realm"` Shard int64 `json:"shard"` Contract int64 `json:"contract"` }
func ContractIDFromAddress ¶ added in v0.4.0
func ContractIDFromAddress(b []byte) (ContractID, error)
func ContractIDFromString ¶
func ContractIDFromString(s string) (ContractID, error)
func (ContractID) String ¶
func (id ContractID) String() string
type ContractLogInfo ¶ added in v0.4.0
type ContractLogInfo struct { Contract ContractID Bloom []byte Topic [][]byte Data []byte }
type Duration ¶ added in v0.4.0
func NewDuration ¶ added in v0.4.0
type FileID ¶
type FileID struct { Realm int64 `json:"realm"` Shard int64 `json:"shard"` File int64 `json:"file"` }
func FileIDFromAddress ¶ added in v0.4.0
func FileIDFromString ¶
type FunctionSelector ¶ added in v0.4.0
func NewFunctionSelector ¶ added in v0.4.0
func NewFunctionSelector(function string) *FunctionSelector
func (*FunctionSelector) AddParamType ¶ added in v0.4.0
func (fs *FunctionSelector) AddParamType(paramType string)
func (*FunctionSelector) Finish ¶ added in v0.4.0
func (fs *FunctionSelector) Finish() []byte
func (*FunctionSelector) FinishIntermediate ¶ added in v0.4.0
func (fs *FunctionSelector) FinishIntermediate() []byte
type PartialAccountMessage ¶
type PartialAccountMessage struct {
// contains filtered or unexported fields
}
func (PartialAccountMessage) Balance ¶
func (m PartialAccountMessage) Balance() QueryCryptoGetAccountBalance
type PartialTransactionMessage ¶
type PartialTransactionMessage struct {
// contains filtered or unexported fields
}
func (PartialTransactionMessage) Receipt ¶
func (m PartialTransactionMessage) Receipt() QueryTransactionGetReceipt
type PublicKey ¶
type PublicKey struct {
// contains filtered or unexported fields
}
func PublicKeyFromString ¶
type QueryContractCall ¶ added in v0.4.0
type QueryContractCall struct {
// contains filtered or unexported fields
}
func (QueryContractCall) Execute ¶ added in v0.4.0
func (query QueryContractCall) Execute() (ContractFunctionResult, error)
type QueryCryptoGetAccountBalance ¶
type QueryCryptoGetAccountBalance struct {
// contains filtered or unexported fields
}
func (QueryCryptoGetAccountBalance) Answer
deprecated
func (query QueryCryptoGetAccountBalance) Answer() (uint64, error)
Deprecated: Use Query.Get() instead
func (QueryCryptoGetAccountBalance) Get ¶
func (query QueryCryptoGetAccountBalance) Get() (uint64, error)
type QueryFileGetContents ¶ added in v0.4.0
type QueryFileGetContents struct {
// contains filtered or unexported fields
}
func (QueryFileGetContents) GetContents ¶ added in v0.4.0
func (query QueryFileGetContents) GetContents() ([]byte, error)
type QueryTransactionGetReceipt ¶
type QueryTransactionGetReceipt struct {
// contains filtered or unexported fields
}
func (QueryTransactionGetReceipt) Answer
deprecated
func (query QueryTransactionGetReceipt) Answer() (TransactionReceipt, error)
Deprecated: Use Query.Get() instead
func (QueryTransactionGetReceipt) Get ¶
func (query QueryTransactionGetReceipt) Get() (TransactionReceipt, error)
type RawTransaction ¶
type RawTransaction struct {
// contains filtered or unexported fields
}
func (RawTransaction) Execute ¶
func (tx RawTransaction) Execute() (TransactionID, error)
func (RawTransaction) Sign ¶
func (tx RawTransaction) Sign(key SecretKey) RawTransaction
type SecretKey ¶
type SecretKey struct {
// contains filtered or unexported fields
}
func GenerateSecretKey ¶
func SecretKeyFromString ¶
type Signature ¶
type Signature struct {
// contains filtered or unexported fields
}
func SignatureFromString ¶
type Status ¶
type Status uint8
const ( StatusOk Status = 0 StatusInvalidTransaction Status = 1 StatusPayerAccountNotFound Status = 2 StatusInvalidNodeAccount Status = 3 StatusTransactionExpired Status = 4 StatusInvalidTransactionStart Status = 5 StatusInvalidTransactionDuration Status = 6 StatusInvalidSignature Status = 7 StatusMemoTooLong Status = 8 StatusInsufficientTxFee Status = 9 StatusInsufficientPayerBalance Status = 10 StatusDuplicateTransaction Status = 11 StatusBusy Status = 12 StatusNotSupported Status = 13 StatusInvalidFileId Status = 14 StatusInvalidAccountId Status = 15 StatusInvalidContractId Status = 16 StatusInvalidTransactionId Status = 17 StatusReceiptNotFound Status = 18 StatusRecordNotFound Status = 19 StatusInvalidSolidityId Status = 20 StatusUnknown Status = 21 StatusSuccess Status = 22 StatusFailInvalid Status = 23 StatusFailFee Status = 24 StatusFailBalance Status = 25 StatusKeyRequired Status = 26 StatusBadEncoding Status = 27 StatusInsufficientAccountBalance Status = 28 StatusInvalidSolidityAddress Status = 29 StatusInsufficientGas Status = 30 StatusContractSizeLimitExceeded Status = 31 StatusLocalCallModificationException Status = 32 StatusContractRevertExecuted Status = 33 StatusContractExecutionException Status = 34 StatusInvalidReceivingNodeAccount Status = 35 StatusMissingQueryHeader Status = 36 StatusAccountUpdateFailed Status = 37 StatusInvalidKeyEncoding Status = 38 StatusNullSolidityAddress Status = 39 StatusContractUpdateFailed Status = 40 StatusInvalidQueryHeader Status = 41 StatusInvalidFeeSubmitted Status = 42 StatusInvalidPayerSignature Status = 43 StatusKeyNotProvided Status = 44 StatusInvalidExpirationTime Status = 45 StatusNoWaclKey Status = 46 StatusFileContentEmpty Status = 47 StatusInvalidAccountAmounts Status = 48 StatusEmptyTransactionBody Status = 49 StatusInvalidTransactionBody Status = 50 InvalidSignatureTypeMismatch Status = 51 InvalidSignatureCountMismatch Status = 52 EmptyClaimBody Status = 53 EmptyClaimHash Status = 54 EmptyClaimKeys Status = 55 InvalidClaimHashSize Status = 56 EmptyQueryBody Status = 57 EmptyClaimQuery Status = 58 ClaimNotFound Status = 59 AccountIdDoesNotExist Status = 60 ClaimAlreadyExists Status = 61 InvalidFileWACL Status = 62 SerializationFailed Status = 63 TransactionOversize Status = 64 TransactionTooManyLayers Status = 65 ContractDeleted Status = 66 PlatformNotActive Status = 67 KeyPrefixMismatch Status = 68 TransactionNotCreated Status = 69 InvalidRenewalPeriod Status = 70 InvalidPayerAccount Status = 71 AccountDeleted Status = 72 FileDeleted Status = 73 AccountRepeatedInAccountAmounts Status = 74 SettingNegativeAccountBalance Status = 75 ObtainerRequired Status = 76 ObtainerSameContractId Status = 77 ObtainerDoesNotExist Status = 78 ModifyingImmutableContract Status = 79 FileSystemException Status = 80 AutorenewDurationNotInRange Status = 81 ErrorDecodingBytestring Status = 82 ContractFileEmpty Status = 83 ContractBytecodeEmpty Status = 84 InvalidInitialBalance Status = 85 InvalidReceiveRecordThreshold Status = 86 InvalidSendRecordThreshold Status = 87 AccountIsNotGenesisAccount Status = 88 InvalidFreezeTransactionBody Status = 90 FreezeTransactionBodyNotFound Status = 91 TransferListSizeLimitExceeded Status = 92 ResultSizeLimitExceeded Status = 93 NotSpecialAccount Status = 94 ContractNegativeGas Status = 95 ContractNegativeValue Status = 96 InvalidFeeFile Status = 97 InvalidExchangeRateFile Status = 98 InsufficientLocalCallGas Status = 99 EntityNotAllowedToDelete Status = 100 AuthorizationFailed Status = 101 FileUploadedProtoInvalid Status = 102 FileUploadedProtoNotSavedToDisk Status = 103 FeeScheduleFilePartUploaded Status = 104 ExchangeRateChangeLimitExceeded Status = 105 )
type Timestamp ¶ added in v0.4.0
func (*Timestamp) AddSeconds ¶ added in v0.4.0
type TransactionContractCall ¶ added in v0.4.0
type TransactionContractCall struct {
// contains filtered or unexported fields
}
func (TransactionContractCall) Amount ¶ added in v0.4.0
func (tx TransactionContractCall) Amount(amount uint64) TransactionContractCall
func (TransactionContractCall) Execute ¶ added in v0.4.0
func (tx TransactionContractCall) Execute() (TransactionID, error)
func (TransactionContractCall) Fee ¶ added in v0.4.0
func (tx TransactionContractCall) Fee(fee uint64) transaction
func (TransactionContractCall) Gas ¶ added in v0.4.0
func (tx TransactionContractCall) Gas(gas uint64) TransactionContractCall
func (TransactionContractCall) Memo ¶ added in v0.4.0
func (tx TransactionContractCall) Memo(memo string) transaction
func (TransactionContractCall) Node ¶ added in v0.4.0
func (tx TransactionContractCall) Node(id AccountID) transaction
func (TransactionContractCall) Operator ¶ added in v0.4.0
func (tx TransactionContractCall) Operator(id AccountID) transaction
func (TransactionContractCall) Parameters ¶ added in v0.4.0
func (tx TransactionContractCall) Parameters(params []byte) TransactionContractCall
func (TransactionContractCall) Sign ¶ added in v0.4.0
func (tx TransactionContractCall) Sign(key SecretKey) RawTransaction
type TransactionContractCreate ¶ added in v0.4.0
type TransactionContractCreate struct {
// contains filtered or unexported fields
}
func (TransactionContractCreate) AdminKey ¶ added in v0.4.0
func (tx TransactionContractCreate) AdminKey(public PublicKey) TransactionContractCreate
func (TransactionContractCreate) AutoRenew ¶ added in v0.4.0
func (tx TransactionContractCreate) AutoRenew(period Duration) TransactionContractCreate
func (TransactionContractCreate) ConstructorParams ¶ added in v0.4.0
func (tx TransactionContractCreate) ConstructorParams(params []byte) TransactionContractCreate
func (TransactionContractCreate) Execute ¶ added in v0.4.0
func (tx TransactionContractCreate) Execute() (TransactionID, error)
func (TransactionContractCreate) Fee ¶ added in v0.4.0
func (tx TransactionContractCreate) Fee(fee uint64) transaction
func (TransactionContractCreate) File ¶ added in v0.4.0
func (tx TransactionContractCreate) File(file FileID) TransactionContractCreate
func (TransactionContractCreate) Gas ¶ added in v0.4.0
func (tx TransactionContractCreate) Gas(gas int64) TransactionContractCreate
func (TransactionContractCreate) InitialBalance ¶ added in v0.4.0
func (tx TransactionContractCreate) InitialBalance(balance int64) TransactionContractCreate
func (TransactionContractCreate) Memo ¶ added in v0.4.0
func (tx TransactionContractCreate) Memo(memo string) transaction
func (TransactionContractCreate) Node ¶ added in v0.4.0
func (tx TransactionContractCreate) Node(id AccountID) transaction
func (TransactionContractCreate) Operator ¶ added in v0.4.0
func (tx TransactionContractCreate) Operator(id AccountID) transaction
func (TransactionContractCreate) ProxyAccount ¶ added in v0.4.0
func (tx TransactionContractCreate) ProxyAccount(proxyId AccountID) TransactionContractCreate
func (TransactionContractCreate) Sign ¶ added in v0.4.0
func (tx TransactionContractCreate) Sign(key SecretKey) RawTransaction
type TransactionContractUpdate ¶ added in v0.4.0
type TransactionContractUpdate struct {
// contains filtered or unexported fields
}
func (TransactionContractUpdate) AdminKey ¶ added in v0.4.0
func (tx TransactionContractUpdate) AdminKey(public PublicKey) TransactionContractUpdate
func (TransactionContractUpdate) Execute ¶ added in v0.4.0
func (tx TransactionContractUpdate) Execute() (TransactionID, error)
func (TransactionContractUpdate) Fee ¶ added in v0.4.0
func (tx TransactionContractUpdate) Fee(fee uint64) transaction
func (TransactionContractUpdate) File ¶ added in v0.4.0
func (tx TransactionContractUpdate) File(file FileID) TransactionContractUpdate
func (TransactionContractUpdate) Memo ¶ added in v0.4.0
func (tx TransactionContractUpdate) Memo(memo string) transaction
func (TransactionContractUpdate) Node ¶ added in v0.4.0
func (tx TransactionContractUpdate) Node(id AccountID) transaction
func (TransactionContractUpdate) Operator ¶ added in v0.4.0
func (tx TransactionContractUpdate) Operator(id AccountID) transaction
func (TransactionContractUpdate) ProxyAccount ¶ added in v0.4.0
func (tx TransactionContractUpdate) ProxyAccount(proxyId AccountID) TransactionContractUpdate
func (TransactionContractUpdate) Sign ¶ added in v0.4.0
func (tx TransactionContractUpdate) Sign(key SecretKey) RawTransaction
type TransactionCryptoCreate ¶
type TransactionCryptoCreate struct {
// contains filtered or unexported fields
}
func (TransactionCryptoCreate) Execute ¶
func (tx TransactionCryptoCreate) Execute() (TransactionID, error)
func (TransactionCryptoCreate) Fee ¶ added in v0.3.4
func (tx TransactionCryptoCreate) Fee(fee uint64) transaction
func (TransactionCryptoCreate) InitialBalance ¶
func (tx TransactionCryptoCreate) InitialBalance(balance uint64) TransactionCryptoCreate
func (TransactionCryptoCreate) Key ¶
func (tx TransactionCryptoCreate) Key(public PublicKey) TransactionCryptoCreate
func (TransactionCryptoCreate) Memo ¶
func (tx TransactionCryptoCreate) Memo(memo string) TransactionCryptoCreate
func (TransactionCryptoCreate) Node ¶
func (tx TransactionCryptoCreate) Node(id AccountID) TransactionCryptoCreate
func (TransactionCryptoCreate) Operator ¶
func (tx TransactionCryptoCreate) Operator(id AccountID) TransactionCryptoCreate
func (TransactionCryptoCreate) Sign ¶
func (tx TransactionCryptoCreate) Sign(key SecretKey) RawTransaction
type TransactionCryptoTransfer ¶
type TransactionCryptoTransfer struct {
// contains filtered or unexported fields
}
func (TransactionCryptoTransfer) Execute ¶
func (tx TransactionCryptoTransfer) Execute() (TransactionID, error)
func (TransactionCryptoTransfer) Fee ¶ added in v0.3.4
func (tx TransactionCryptoTransfer) Fee(fee uint64) transaction
func (TransactionCryptoTransfer) Memo ¶
func (tx TransactionCryptoTransfer) Memo(memo string) TransactionCryptoTransfer
func (TransactionCryptoTransfer) Node ¶
func (tx TransactionCryptoTransfer) Node(id AccountID) TransactionCryptoTransfer
func (TransactionCryptoTransfer) Operator ¶
func (tx TransactionCryptoTransfer) Operator(id AccountID) TransactionCryptoTransfer
func (TransactionCryptoTransfer) Sign ¶
func (tx TransactionCryptoTransfer) Sign(key SecretKey) RawTransaction
func (TransactionCryptoTransfer) Transfer ¶
func (tx TransactionCryptoTransfer) Transfer(id AccountID, amount int64) TransactionCryptoTransfer
type TransactionFileAppend ¶ added in v0.4.0
type TransactionFileAppend struct {
// contains filtered or unexported fields
}
func (TransactionFileAppend) Execute ¶ added in v0.4.0
func (tx TransactionFileAppend) Execute() (TransactionID, error)
func (TransactionFileAppend) Fee ¶ added in v0.4.0
func (tx TransactionFileAppend) Fee(fee uint64) transaction
func (TransactionFileAppend) Memo ¶ added in v0.4.0
func (tx TransactionFileAppend) Memo(memo string) transaction
func (TransactionFileAppend) Node ¶ added in v0.4.0
func (tx TransactionFileAppend) Node(id AccountID) transaction
func (TransactionFileAppend) Operator ¶ added in v0.4.0
func (tx TransactionFileAppend) Operator(id AccountID) transaction
func (TransactionFileAppend) Sign ¶ added in v0.4.0
func (tx TransactionFileAppend) Sign(key SecretKey) RawTransaction
type TransactionFileCreate ¶ added in v0.4.0
type TransactionFileCreate struct {
// contains filtered or unexported fields
}
func (TransactionFileCreate) Content ¶ added in v0.4.0
func (tx TransactionFileCreate) Content(content []byte) TransactionFileCreate
func (TransactionFileCreate) Execute ¶ added in v0.4.0
func (tx TransactionFileCreate) Execute() (TransactionID, error)
func (TransactionFileCreate) Expiration ¶ added in v0.4.0
func (tx TransactionFileCreate) Expiration(exp Timestamp) TransactionFileCreate
func (TransactionFileCreate) Fee ¶ added in v0.4.0
func (tx TransactionFileCreate) Fee(fee uint64) transaction
func (TransactionFileCreate) Key ¶ added in v0.4.0
func (tx TransactionFileCreate) Key(public PublicKey) TransactionFileCreate
func (TransactionFileCreate) Memo ¶ added in v0.4.0
func (tx TransactionFileCreate) Memo(memo string) transaction
func (TransactionFileCreate) Node ¶ added in v0.4.0
func (tx TransactionFileCreate) Node(id AccountID) transaction
func (TransactionFileCreate) Operator ¶ added in v0.4.0
func (tx TransactionFileCreate) Operator(id AccountID) transaction
func (TransactionFileCreate) Sign ¶ added in v0.4.0
func (tx TransactionFileCreate) Sign(key SecretKey) RawTransaction
type TransactionFileDelete ¶ added in v0.4.0
type TransactionFileDelete struct {
// contains filtered or unexported fields
}
func (TransactionFileDelete) Execute ¶ added in v0.4.0
func (tx TransactionFileDelete) Execute() (TransactionID, error)
func (TransactionFileDelete) Fee ¶ added in v0.4.0
func (tx TransactionFileDelete) Fee(fee uint64) transaction
func (TransactionFileDelete) Memo ¶ added in v0.4.0
func (tx TransactionFileDelete) Memo(memo string) transaction
func (TransactionFileDelete) Node ¶ added in v0.4.0
func (tx TransactionFileDelete) Node(id AccountID) transaction
func (TransactionFileDelete) Operator ¶ added in v0.4.0
func (tx TransactionFileDelete) Operator(id AccountID) transaction
func (TransactionFileDelete) Sign ¶ added in v0.4.0
func (tx TransactionFileDelete) Sign(key SecretKey) RawTransaction
type TransactionFileUpdate ¶ added in v0.4.0
type TransactionFileUpdate struct {
// contains filtered or unexported fields
}
func (TransactionFileUpdate) Execute ¶ added in v0.4.0
func (tx TransactionFileUpdate) Execute() (TransactionID, error)
func (TransactionFileUpdate) Fee ¶ added in v0.4.0
func (tx TransactionFileUpdate) Fee(fee uint64) transaction
func (TransactionFileUpdate) Key ¶ added in v0.4.0
func (tx TransactionFileUpdate) Key(public PublicKey) TransactionFileUpdate
func (TransactionFileUpdate) Memo ¶ added in v0.4.0
func (tx TransactionFileUpdate) Memo(memo string) transaction
func (TransactionFileUpdate) Node ¶ added in v0.4.0
func (tx TransactionFileUpdate) Node(id AccountID) transaction
func (TransactionFileUpdate) Operator ¶ added in v0.4.0
func (tx TransactionFileUpdate) Operator(id AccountID) transaction
func (TransactionFileUpdate) Sign ¶ added in v0.4.0
func (tx TransactionFileUpdate) Sign(key SecretKey) RawTransaction
type TransactionID ¶
type TransactionID struct { // Deprecated: The response is already a TransactionID ID *TransactionID AccountID AccountID TransactionValidStart time.Time }
func TransactionIDFromString ¶
func TransactionIDFromString(s string) (TransactionID, error)
func (TransactionID) String ¶
func (id TransactionID) String() string
type TransactionReceipt ¶
type TransactionReceipt struct { Status Status AccountID *AccountID ContractID *ContractID FileID *FileID }
Source Files ¶
- argument.go
- call_param_utils.go
- call_params.go
- client.go
- crypto.go
- duration.go
- function_result.go
- funtion_selector.go
- id.go
- package.go
- query.go
- query_contract_call.go
- query_crypto_get_account_balance.go
- query_file_get_contents.go
- query_transaction_get_receipt.go
- solidity_util.go
- timestamp.go
- transaction.go
- transaction_contract_call.go
- transaction_contract_create.go
- transaction_contract_update.go
- transaction_crypto_create.go
- transaction_crypto_transfer.go
- transaction_file_append.go
- transaction_file_create.go
- transaction_file_delete.go
- transaction_file_update.go
- transaction_id.go
- transaction_receipt.go
- transaction_status.go
Click to show internal directories.
Click to hide internal directories.