Documentation ¶
Overview ¶
Package client provides HTTP client for waves nodes.
Creating client with default params:
c, err := client.NewClient() ...
Client can accept custom node url, http client, and api key:
c, err := client.NewClient(client.Options{ Client: &http.Client{Timeout: 30 * time.Second}, BaseUrl: "https://nodes.wavesnodes.com", ApiKey: "ApiKey", }) ...
Simple example of client usage:
c, err := client.NewClient() if err != nil { // handle error } body, response, err := c.Blocks.First(context.Background()) if err != nil { // handle error } ...
Index ¶
- Constants
- Variables
- func NewTimestampFromTime(t time.Time) uint64
- func NewTimestampFromUnixNano(nano int64) uint64
- type Addresses
- func (a *Addresses) Addresses(ctx context.Context) ([]proto.WavesAddress, *Response, error)
- func (a *Addresses) AddressesData(ctx context.Context, address proto.WavesAddress, opts ...AddressesDataParam) (proto.DataEntries, *Response, error)
- func (a *Addresses) AddressesDataKey(ctx context.Context, address proto.WavesAddress, key string) (proto.DataEntry, *Response, error)
- func (a *Addresses) AddressesDataKeys(ctx context.Context, address proto.WavesAddress, keys []string) (proto.DataEntries, *Response, error)
- func (a *Addresses) Balance(ctx context.Context, address proto.WavesAddress) (*AddressesBalance, *Response, error)
- func (a *Addresses) BalanceAfterConfirmations(ctx context.Context, address proto.WavesAddress, confirmations uint64) (*BalanceAfterConfirmations, *Response, error)
- func (a *Addresses) BalanceDetails(ctx context.Context, address proto.WavesAddress) (*AddressesBalanceDetails, *Response, error)
- func (a *Addresses) EffectiveBalance(ctx context.Context, address proto.WavesAddress) (*AddressesEffectiveBalance, *Response, error)
- func (a *Addresses) PublicKey(ctx context.Context, publicKey string) (*proto.WavesAddress, *Response, error)
- func (a *Addresses) ScriptInfo(ctx context.Context, address proto.WavesAddress) (*AddressesScriptInfo, *Response, error)
- func (a *Addresses) SignText(ctx context.Context, address proto.WavesAddress, message string) (*AddressesSignText, *Response, error)
- func (a *Addresses) Validate(ctx context.Context, address proto.WavesAddress) (*AddressesValidate, *Response, error)
- func (a *Addresses) VerifyText(ctx context.Context, address proto.WavesAddress, body VerifyTextReq) (bool, *Response, error)
- type AddressesBalance
- type AddressesBalanceDetails
- type AddressesDataParam
- type AddressesDataParams
- type AddressesEffectiveBalance
- type AddressesScriptInfo
- type AddressesSignText
- type AddressesValidate
- type Alias
- func (a *Alias) Broadcast(ctx context.Context, broadcastReq AliasBroadcastReq) (*CreateAliasWithSig, *Response, error)
- func (a *Alias) Create(ctx context.Context, createReq AliasCreateReq) (*CreateAliasWithSig, *Response, error)
- func (a *Alias) Get(ctx context.Context, alias string) (proto.WavesAddress, *Response, error)
- func (a *Alias) GetByAddress(ctx context.Context, address proto.WavesAddress) ([]*proto.Alias, *Response, error)
- type AliasBroadcastReq
- type AliasCreateReq
- type Assets
- func (a *Assets) BalanceByAddress(ctx context.Context, address proto.WavesAddress) (*AssetsBalances, *Response, error)
- func (a *Assets) BalanceByAddressAndAsset(ctx context.Context, address proto.WavesAddress, assetId crypto.Digest) (*AssetsBalanceAndAsset, *Response, error)
- func (a *Assets) Burn(ctx context.Context, burnReq AssetsBurnReq) (*proto.BurnWithSig, *Response, error)
- func (a *Assets) Details(ctx context.Context, assetId crypto.Digest) (*AssetsDetail, *Response, error)
- func (a *Assets) Distribution(ctx context.Context, assetId crypto.Digest) (AssetsDistribution, *Response, error)
- func (a *Assets) Issue(ctx context.Context, issueReq AssetsIssueReq) (*AssetsIssue, *Response, error)
- func (a *Assets) MassTransfer(ctx context.Context, transfersReq AssetsMassTransfersReq) (*proto.MassTransferWithProofs, *Response, error)
- func (a *Assets) Sponsor(ctx context.Context, sponsorReq AssetsSponsorReq) (*proto.SponsorshipWithProofs, *Response, error)
- type AssetsBalance
- type AssetsBalanceAndAsset
- type AssetsBalances
- type AssetsBurnReq
- type AssetsDetail
- type AssetsDistribution
- type AssetsIssue
- type AssetsIssueReq
- type AssetsMassTransferReq
- type AssetsMassTransfersReq
- type AssetsSponsorReq
- type BalanceAfterConfirmations
- type BalancesHistoryRow
- type Block
- type Blocks
- func (a *Blocks) Address(ctx context.Context, addr proto.WavesAddress, from, to uint64) ([]*Block, *Response, error)
- func (a *Blocks) At(ctx context.Context, height uint64) (*Block, *Response, error)
- func (a *Blocks) Child(ctx context.Context, id proto.BlockID) (*Block, *Response, error)
- func (a *Blocks) Delay(ctx context.Context, id proto.BlockID, blockNum uint64) (uint64, *Response, error)
- func (a *Blocks) First(ctx context.Context) (*Block, *Response, error)
- func (a *Blocks) HeadersAt(ctx context.Context, height uint64) (*Headers, *Response, error)
- func (a *Blocks) HeadersLast(ctx context.Context) (*Headers, *Response, error)
- func (a *Blocks) HeadersSeq(ctx context.Context, from uint64, to uint64) ([]*Headers, *Response, error)
- func (a *Blocks) Height(ctx context.Context) (*BlocksHeight, *Response, error)
- func (a *Blocks) HeightByID(ctx context.Context, id proto.BlockID) (*BlocksHeight, *Response, error)
- func (a *Blocks) HeightBySignature(ctx context.Context, id string) (*BlocksHeight, *Response, error)
- func (a *Blocks) Last(ctx context.Context) (*Block, *Response, error)
- func (a *Blocks) Seq(ctx context.Context, from, to uint64) ([]*Block, *Response, error)
- func (a *Blocks) Signature(ctx context.Context, id proto.BlockID) (*Block, *Response, error)
- type BlocksHeight
- type BurnAction
- type BurnWithProofsTransactionInfo
- type BurnWithSigTransactionInfo
- type Client
- type Consensus
- func (a *Consensus) Algo(ctx context.Context) (string, *Response, error)
- func (a *Consensus) BaseTarget(ctx context.Context) (*ConsensusBaseTarget, *Response, error)
- func (a *Consensus) BaseTargetByBlock(ctx context.Context, blockID string) (uint64, *Response, error)
- func (a Consensus) GeneratingBalance(ctx context.Context, address proto.WavesAddress) (*ConsensusGeneratingBalance, *Response, error)
- func (a *Consensus) GenerationSignature(ctx context.Context) (string, *Response, error)
- func (a *Consensus) GenerationSignatureByBlock(ctx context.Context, blockID string) (string, *Response, error)
- type ConsensusBaseTarget
- type ConsensusGeneratingBalance
- type CreateAliasWithProofsTransactionInfo
- type CreateAliasWithSig
- type CreateAliasWithSigTransactionInfo
- type DataEntries
- type DataTransactionInfo
- type Debug
- func (a *Debug) BalancesHistory(ctx context.Context, address proto.WavesAddress) ([]*BalancesHistoryRow, *Response, error)
- func (a *Debug) Blocks(ctx context.Context, howMany uint64) ([]map[uint64]string, *Response, error)
- func (a *Debug) ConfigInfo(ctx context.Context, full bool) ([]byte, *Response, error)
- func (a *Debug) HistoryInfo(ctx context.Context) (*DebugHistoryInfo, *Response, error)
- func (a *Debug) Info(ctx context.Context) (*DebugInfo, *Response, error)
- func (a *Debug) MinerInfo(ctx context.Context) ([]*DebugMinerInfo, *Response, error)
- func (a *Debug) PrintMsg(ctx context.Context, msg string) (*Response, error)
- func (a *Debug) StateChanges(ctx context.Context, id crypto.Digest) (*StateChangesResponse, *Response, error)
- func (a *Debug) StateHash(ctx context.Context, height uint64) (*proto.StateHash, *Response, error)
- type DebugHistoryInfo
- type DebugInfo
- type DebugMinerInfo
- type Doer
- type EthereumTransactionInfo
- type EthereumTransactionInvocationPayload
- type EthereumTransactionPayload
- type EthereumTransactionTransferPayload
- type EthereumTransactionType
- type ExchangeWithProofsTransactionInfo
- type ExchangeWithSigTransactionInfo
- type GenesisTransactionInfo
- type Headers
- type HttpClient
- type InvokeAction
- type InvokeScriptTransactionInfo
- type IssueAction
- type IssueWithProofsTransactionInfo
- type IssueWithSigTransactionInfo
- type LeaseAction
- type LeaseCancelAction
- type LeaseCancelWithProofsTransactionInfo
- type LeaseCancelWithSigTransactionInfo
- type LeaseStatus
- type LeaseWithProofsTransactionInfo
- type LeaseWithSigTransactionInfo
- type Leasing
- type LocalScore
- type MassTransferTransactionInfo
- type NxtConsensus
- type Options
- type ParseError
- type PaymentTransactionInfo
- type PeerAllRow
- type Peers
- func (a *Peers) All(ctx context.Context) ([]*PeerAllRow, *Response, error)
- func (a *Peers) Blacklisted(ctx context.Context) ([]*PeersBlacklistedRow, *Response, error)
- func (a *Peers) ClearBlacklist(ctx context.Context) (string, *Response, error)
- func (a *Peers) Connect(ctx context.Context, host string, port uint16) (*PeersConnect, *Response, error)
- func (a *Peers) Connected(ctx context.Context) ([]*PeersConnectedRow, *Response, error)
- func (a *Peers) Suspended(ctx context.Context) ([]*PeersSuspendedRow, *Response, error)
- type PeersBlacklistedRow
- type PeersConnect
- type PeersConnectedRow
- type PeersSuspendedRow
- type ReissueAction
- type ReissueWithProofsTransactionInfo
- type ReissueWithSigTransactionInfo
- type RequestError
- type Response
- type SetAssetScriptTransactionInfo
- type SetScriptTransactionInfo
- type SponsorFeeAction
- type SponsorshipTransactionInfo
- type StateChanges
- type StateChangesResponse
- type TransactionInfo
- type Transactions
- func (a *Transactions) Address(ctx context.Context, address proto.WavesAddress, limit uint) ([]proto.Transaction, *Response, error)
- func (a *Transactions) Broadcast(ctx context.Context, transaction proto.Transaction) (*Response, error)
- func (a *Transactions) Info(ctx context.Context, id crypto.Digest) (TransactionInfo, *Response, error)
- func (a *Transactions) Unconfirmed(ctx context.Context) ([]proto.Transaction, *Response, error)
- func (a *Transactions) UnconfirmedInfo(ctx context.Context, id crypto.Digest) (proto.Transaction, *Response, error)
- func (a *Transactions) UnconfirmedSize(ctx context.Context) (uint64, *Response, error)
- type TransactionsField
- type TransferAction
- type TransferWithProofsTransactionInfo
- type TransferWithSigTransactionInfo
- type UpdateAssetInfoTransactionInfo
- type Utils
- func (a *Utils) HashFast(ctx context.Context, message string) (*UtilsHashFast, *Response, error)
- func (a *Utils) HashSecure(ctx context.Context, message string) (*UtilsHashSecure, *Response, error)
- func (a *Utils) ScriptCompile(ctx context.Context, code string) (*UtilsScriptCompile, *Response, error)
- func (a *Utils) ScriptEstimate(ctx context.Context, base64code string) (*UtilsScriptEstimate, *Response, error)
- func (a *Utils) Seed(ctx context.Context) (string, *Response, error)
- func (a *Utils) SeedByLength(ctx context.Context, length uint16) (string, *Response, error)
- func (a *Utils) Sign(ctx context.Context, secretKey crypto.SecretKey, message string) (*UtilsSign, *Response, error)
- func (a *Utils) Time(ctx context.Context) (*UtilsTime, *Response, error)
- type UtilsHashFast
- type UtilsHashSecure
- type UtilsScriptCompile
- type UtilsScriptEstimate
- type UtilsSign
- type UtilsTime
- type VerifyText
- type VerifyTextReq
- type Wallet
Constants ¶
const ( EthereumTransactionTransferTypeString string = "transfer" EthereumTransactionInvocationTypeString string = "invocation" )
const ApiKeyHeader = "X-API-Key" // #nosec: it's a header name
ApiKeyHeader is an HTTP header name for API Key
Variables ¶
var NoApiKeyError = errors.New("no api key provided")
Functions ¶
func NewTimestampFromTime ¶
Types ¶
type Addresses ¶
type Addresses struct {
// contains filtered or unexported fields
}
func NewAddresses ¶
NewAddresses create new address block
func (*Addresses) AddressesData ¶ added in v0.10.0
func (a *Addresses) AddressesData(ctx context.Context, address proto.WavesAddress, opts ...AddressesDataParam) (proto.DataEntries, *Response, error)
AddressesData returns all data entries for given address
func (*Addresses) AddressesDataKey ¶ added in v0.10.0
func (a *Addresses) AddressesDataKey(ctx context.Context, address proto.WavesAddress, key string) (proto.DataEntry, *Response, error)
AddressesDataKey returns data entry for given address and key
func (*Addresses) AddressesDataKeys ¶ added in v0.10.0
func (a *Addresses) AddressesDataKeys(ctx context.Context, address proto.WavesAddress, keys []string) (proto.DataEntries, *Response, error)
AddressesDataKeys returns data entry for given address and keys
func (*Addresses) Balance ¶
func (a *Addresses) Balance(ctx context.Context, address proto.WavesAddress) (*AddressesBalance, *Response, error)
Balance returns account's balance by its address
func (*Addresses) BalanceAfterConfirmations ¶
func (a *Addresses) BalanceAfterConfirmations( ctx context.Context, address proto.WavesAddress, confirmations uint64) (*BalanceAfterConfirmations, *Response, error)
BalanceAfterConfirmations returns balance of an address after given number of confirmations.
func (*Addresses) BalanceDetails ¶
func (a *Addresses) BalanceDetails(ctx context.Context, address proto.WavesAddress) (*AddressesBalanceDetails, *Response, error)
BalanceDetails returns account's detail balance by its address
func (*Addresses) EffectiveBalance ¶
func (a *Addresses) EffectiveBalance(ctx context.Context, address proto.WavesAddress) (*AddressesEffectiveBalance, *Response, error)
EffectiveBalance gets account's balance
func (*Addresses) PublicKey ¶
func (a *Addresses) PublicKey(ctx context.Context, publicKey string) (*proto.WavesAddress, *Response, error)
PublicKey generates address from public key
func (*Addresses) ScriptInfo ¶
func (a *Addresses) ScriptInfo(ctx context.Context, address proto.WavesAddress) (*AddressesScriptInfo, *Response, error)
ScriptInfo gets account's script information
func (*Addresses) SignText ¶
func (a *Addresses) SignText(ctx context.Context, address proto.WavesAddress, message string) (*AddressesSignText, *Response, error)
SignText signs a message with a private key associated with address
func (*Addresses) Validate ¶
func (a *Addresses) Validate(ctx context.Context, address proto.WavesAddress) (*AddressesValidate, *Response, error)
Validate checks whether address is valid or not
func (*Addresses) VerifyText ¶
func (a *Addresses) VerifyText(ctx context.Context, address proto.WavesAddress, body VerifyTextReq) (bool, *Response, error)
VerifyText checks a signature of a message signed by an account
type AddressesBalance ¶
type AddressesBalance struct { Address proto.WavesAddress `json:"address"` Confirmations uint64 `json:"confirmations"` Balance uint64 `json:"balance"` }
type AddressesBalanceDetails ¶
type AddressesDataParam ¶ added in v0.10.1
type AddressesDataParam func(*AddressesDataParams)
func WithKeys ¶ added in v0.10.1
func WithKeys(keys ...string) AddressesDataParam
func WithMatches ¶ added in v0.10.1
func WithMatches(matches string) AddressesDataParam
type AddressesDataParams ¶ added in v0.10.1
type AddressesDataParams struct {
// contains filtered or unexported fields
}
type AddressesEffectiveBalance ¶
type AddressesEffectiveBalance struct { Address proto.WavesAddress `json:"address"` Confirmations uint64 `json:"confirmations"` Balance uint64 `json:"balance"` }
type AddressesScriptInfo ¶
type AddressesScriptInfo struct { Address proto.WavesAddress `json:"address"` Script string `json:"script"` ScriptText string `json:"scriptText"` Version uint64 `json:"version"` Complexity uint64 `json:"complexity"` VerifierComplexity uint64 `json:"verifierComplexity"` CallableComplexities map[string]uint64 `json:"callableComplexities"` ExtraFee uint64 `json:"extraFee"` }
type AddressesSignText ¶
type AddressesValidate ¶
type AddressesValidate struct { Address proto.WavesAddress `json:"address"` Valid bool `json:"valid"` }
type Alias ¶
type Alias struct {
// contains filtered or unexported fields
}
func (*Alias) Broadcast ¶
func (a *Alias) Broadcast(ctx context.Context, broadcastReq AliasBroadcastReq) (*CreateAliasWithSig, *Response, error)
func (*Alias) Create ¶
func (a *Alias) Create(ctx context.Context, createReq AliasCreateReq) (*CreateAliasWithSig, *Response, error)
type AliasBroadcastReq ¶
type AliasCreateReq ¶
type AliasCreateReq struct { Sender proto.WavesAddress `json:"sender"` Alias string `json:"alias"` Fee uint64 `json:"fee"` Timestamp uint64 `json:"timestamp,omitempty"` }
type Assets ¶ added in v0.1.2
type Assets struct {
// contains filtered or unexported fields
}
func (*Assets) BalanceByAddress ¶ added in v0.1.2
func (a *Assets) BalanceByAddress(ctx context.Context, address proto.WavesAddress) (*AssetsBalances, *Response, error)
BalanceByAddress provides detailed information about given asset
func (*Assets) BalanceByAddressAndAsset ¶ added in v0.1.2
func (a *Assets) BalanceByAddressAndAsset(ctx context.Context, address proto.WavesAddress, assetId crypto.Digest) (*AssetsBalanceAndAsset, *Response, error)
BalanceByAddressAndAsset returns account's balance by given asset.
func (*Assets) Burn ¶ added in v0.1.2
func (a *Assets) Burn(ctx context.Context, burnReq AssetsBurnReq) (*proto.BurnWithSig, *Response, error)
Burn some of your assets
func (*Assets) Details ¶ added in v0.1.2
func (a *Assets) Details(ctx context.Context, assetId crypto.Digest) (*AssetsDetail, *Response, error)
Details provides detailed information about given asset.
func (*Assets) Distribution ¶ added in v0.1.2
func (a *Assets) Distribution(ctx context.Context, assetId crypto.Digest) (AssetsDistribution, *Response, error)
Distribution gets asset balance distribution by account.
func (*Assets) Issue ¶ added in v0.1.2
func (a *Assets) Issue(ctx context.Context, issueReq AssetsIssueReq) (*AssetsIssue, *Response, error)
Issue new Asset
func (*Assets) MassTransfer ¶ added in v0.1.2
func (a *Assets) MassTransfer(ctx context.Context, transfersReq AssetsMassTransfersReq) (*proto.MassTransferWithProofs, *Response, error)
MassTransfer creates a mass transfer of assets.
func (*Assets) Sponsor ¶ added in v0.1.2
func (a *Assets) Sponsor(ctx context.Context, sponsorReq AssetsSponsorReq) (*proto.SponsorshipWithProofs, *Response, error)
Sponsor provided asset
type AssetsBalance ¶ added in v0.1.2
type AssetsBalance struct { AssetId crypto.Digest `json:"assetId"` Balance uint64 `json:"balance"` Reissuable bool `json:"reissuable"` MinSponsoredAssetFee uint64 `json:"minSponsoredAssetFee"` SponsorBalance uint64 `json:"sponsorBalance"` Quantity uint64 `json:"quantity"` IssueTransaction proto.IssueWithSig `json:"issueTransaction"` }
type AssetsBalanceAndAsset ¶ added in v0.1.2
type AssetsBalanceAndAsset struct { Address proto.WavesAddress `json:"address"` AssetId crypto.Digest `json:"assetId"` Balance uint64 `json:"balance"` }
type AssetsBalances ¶ added in v0.1.2
type AssetsBalances struct { Address proto.WavesAddress `json:"address"` Balances []AssetsBalance `json:"balances"` }
type AssetsBurnReq ¶ added in v0.1.2
type AssetsDetail ¶ added in v0.1.2
type AssetsDetail struct { AssetId crypto.Digest `json:"assetId"` IssueHeight uint64 `json:"issueHeight"` IssueTimestamp uint64 `json:"issueTimestamp"` Issuer proto.WavesAddress `json:"issuer"` Name string `json:"name"` Description string `json:"description"` Decimals uint64 `json:"decimals"` Reissuable bool `json:"reissuable"` Quantity uint64 `json:"quantity"` MinSponsoredAssetFee uint64 `json:"minSponsoredAssetFee"` }
type AssetsDistribution ¶ added in v0.1.2
type AssetsIssue ¶ added in v0.1.2
type AssetsIssueReq ¶ added in v0.1.2
type AssetsIssueReq struct { Sender proto.WavesAddress `json:"sender"` Name string `json:"name"` Description string `json:"description"` Quantity uint64 `json:"quantity"` Decimals uint8 `json:"decimals"` Reissuable bool `json:"reissuable"` Fee uint64 `json:"fee"` Timestamp uint64 `json:"timestamp"` }
type AssetsMassTransferReq ¶ added in v0.1.2
type AssetsMassTransferReq struct { Recipient proto.WavesAddress `json:"recipient"` Amount uint64 `json:"amount"` }
type AssetsMassTransfersReq ¶ added in v0.1.2
type AssetsMassTransfersReq struct { Version uint8 `json:"version"` AssetId crypto.Digest `json:"asset_id"` Sender proto.WavesAddress `json:"sender"` Transfers []AssetsMassTransferReq `json:"transfers"` Fee uint64 `json:"fee"` Attachment []byte `json:"attachment"` Timestamp uint64 `json:"timestamp"` }
type AssetsSponsorReq ¶ added in v0.1.2
type BalanceAfterConfirmations ¶
type BalanceAfterConfirmations struct { Address proto.WavesAddress `json:"address"` Confirmations uint64 `json:"confirmations"` Balance uint64 `json:"balance"` }
type BalancesHistoryRow ¶ added in v0.8.0
type Block ¶
type Block struct { Headers Fee uint64 `json:"fee"` Transactions TransactionsField `json:"transactions"` }
type Blocks ¶
type Blocks struct {
// contains filtered or unexported fields
}
func (*Blocks) HeadersLast ¶
func (*Blocks) HeadersSeq ¶
func (*Blocks) HeightByID ¶ added in v0.8.0
func (*Blocks) HeightBySignature ¶
type BlocksHeight ¶
type BlocksHeight struct {
Height uint64 `json:"height"`
}
type BurnAction ¶ added in v0.10.0
type BurnWithProofsTransactionInfo ¶ added in v0.10.0
type BurnWithProofsTransactionInfo struct { proto.BurnWithProofs // contains filtered or unexported fields }
func (*BurnWithProofsTransactionInfo) GetSpentComplexity ¶ added in v0.10.0
func (txInfoCommon *BurnWithProofsTransactionInfo) GetSpentComplexity() int
func (*BurnWithProofsTransactionInfo) UnmarshalJSON ¶ added in v0.10.0
func (txInfo *BurnWithProofsTransactionInfo) UnmarshalJSON(data []byte) error
type BurnWithSigTransactionInfo ¶ added in v0.10.0
type BurnWithSigTransactionInfo struct { proto.BurnWithSig // contains filtered or unexported fields }
func (*BurnWithSigTransactionInfo) GetSpentComplexity ¶ added in v0.10.0
func (txInfoCommon *BurnWithSigTransactionInfo) GetSpentComplexity() int
func (*BurnWithSigTransactionInfo) UnmarshalJSON ¶ added in v0.10.0
func (txInfo *BurnWithSigTransactionInfo) UnmarshalJSON(data []byte) error
type Client ¶
type Client struct { Addresses *Addresses Blocks *Blocks Wallet *Wallet Alias *Alias Peers *Peers Consensus *Consensus Transactions *Transactions Assets *Assets Utils *Utils Leasing *Leasing Debug *Debug // contains filtered or unexported fields }
func (*Client) GetOptions ¶
type Consensus ¶
type Consensus struct {
// contains filtered or unexported fields
}
func NewConsensus ¶
NewConsensus creates new consensus api section.
func (*Consensus) BaseTarget ¶
BaseTarget gets base target of the last block.
func (*Consensus) BaseTargetByBlock ¶
func (a *Consensus) BaseTargetByBlock(ctx context.Context, blockID string) (uint64, *Response, error)
BaseTargetByBlock gets base target of a block with specified ID.
func (Consensus) GeneratingBalance ¶
func (a Consensus) GeneratingBalance(ctx context.Context, address proto.WavesAddress) (*ConsensusGeneratingBalance, *Response, error)
GeneratingBalance returns account's generating balance (the same as balance atm).
func (*Consensus) GenerationSignature ¶
GenerationSignature gets generation signature of the last block.
type ConsensusBaseTarget ¶
type ConsensusGeneratingBalance ¶
type ConsensusGeneratingBalance struct { Address proto.WavesAddress `json:"address"` Balance uint64 `json:"balance"` }
type CreateAliasWithProofsTransactionInfo ¶ added in v0.10.0
type CreateAliasWithProofsTransactionInfo struct { proto.CreateAliasWithProofs // contains filtered or unexported fields }
func (*CreateAliasWithProofsTransactionInfo) GetSpentComplexity ¶ added in v0.10.0
func (txInfoCommon *CreateAliasWithProofsTransactionInfo) GetSpentComplexity() int
func (*CreateAliasWithProofsTransactionInfo) UnmarshalJSON ¶ added in v0.10.0
func (txInfo *CreateAliasWithProofsTransactionInfo) UnmarshalJSON(data []byte) error
type CreateAliasWithSig ¶ added in v0.5.0
type CreateAliasWithSig struct { Type proto.TransactionType `json:"type"` Version byte `json:"version,omitempty"` ID *crypto.Digest `json:"id,omitempty"` Signature *crypto.Signature `json:"signature,omitempty"` SenderPK crypto.PublicKey `json:"senderPublicKey"` Alias string `json:"alias"` Fee uint64 `json:"fee"` Timestamp uint64 `json:"timestamp,omitempty"` }
type CreateAliasWithSigTransactionInfo ¶ added in v0.10.0
type CreateAliasWithSigTransactionInfo struct { proto.CreateAliasWithSig // contains filtered or unexported fields }
func (*CreateAliasWithSigTransactionInfo) GetSpentComplexity ¶ added in v0.10.0
func (txInfoCommon *CreateAliasWithSigTransactionInfo) GetSpentComplexity() int
func (*CreateAliasWithSigTransactionInfo) UnmarshalJSON ¶ added in v0.10.0
func (txInfo *CreateAliasWithSigTransactionInfo) UnmarshalJSON(data []byte) error
type DataEntries ¶ added in v0.10.0
type DataEntries = proto.DataEntries
type DataTransactionInfo ¶ added in v0.10.0
type DataTransactionInfo struct { proto.DataWithProofs // contains filtered or unexported fields }
func (*DataTransactionInfo) GetSpentComplexity ¶ added in v0.10.0
func (txInfoCommon *DataTransactionInfo) GetSpentComplexity() int
func (*DataTransactionInfo) UnmarshalJSON ¶ added in v0.10.0
func (txInfo *DataTransactionInfo) UnmarshalJSON(data []byte) error
type Debug ¶ added in v0.2.0
type Debug struct {
// contains filtered or unexported fields
}
func (*Debug) BalancesHistory ¶ added in v0.8.0
func (a *Debug) BalancesHistory(ctx context.Context, address proto.WavesAddress) ([]*BalancesHistoryRow, *Response, error)
func (*Debug) ConfigInfo ¶ added in v0.2.0
ConfigInfo currently running node config.
func (*Debug) HistoryInfo ¶ added in v0.2.0
HistoryInfo gets all history info you need to debug.
func (*Debug) StateChanges ¶ added in v0.8.0
type DebugHistoryInfo ¶ added in v0.2.0
type DebugInfo ¶ added in v0.2.0
type DebugInfo struct { StateHeight uint64 `json:"stateHeight"` ExtensionLoaderState string `json:"extensionLoaderState"` HistoryReplierCacheSizes struct { Blocks uint64 `json:"blocks"` MicroBlocks uint64 `json:"microBlocks"` } `json:"historyReplierCacheSizes"` MicroBlockSynchronizerCacheSizes struct { MicroBlockOwners uint64 `json:"microBlockOwners"` NextInvs uint64 `json:"nextInvs"` Awaiting uint64 `json:"awaiting"` SuccessfullyReceived uint64 `json:"successfullyReceived"` } `json:"microBlockSynchronizerCacheSizes"` ScoreObserverStats struct { LocalScore LocalScore `json:"localScore"` CurrentBestChannel string `json:"currentBestChannel"` ScoresCacheSize uint64 `json:"scoresCacheSize"` } `json:"scoreObserverStats"` MinerState string `json:"minerState"` }
type DebugMinerInfo ¶ added in v0.2.0
type DebugMinerInfo struct { Address proto.WavesAddress `json:"address"` MiningBalance uint64 `json:"miningBalance"` Timestamp uint64 `json:"timestamp"` }
type EthereumTransactionInfo ¶ added in v0.10.0
type EthereumTransactionInfo struct { proto.EthereumTransaction Payload EthereumTransactionPayload `json:"payload"` // contains filtered or unexported fields }
func (*EthereumTransactionInfo) GetSpentComplexity ¶ added in v0.10.0
func (txInfoCommon *EthereumTransactionInfo) GetSpentComplexity() int
func (*EthereumTransactionInfo) UnmarshalJSON ¶ added in v0.10.0
func (txInfo *EthereumTransactionInfo) UnmarshalJSON(data []byte) error
type EthereumTransactionInvocationPayload ¶ added in v0.10.0
type EthereumTransactionInvocationPayload InvokeAction
func (*EthereumTransactionInvocationPayload) GetType ¶ added in v0.10.0
func (p *EthereumTransactionInvocationPayload) GetType() EthereumTransactionType
func (*EthereumTransactionInvocationPayload) GetTypeString ¶ added in v0.10.0
func (p *EthereumTransactionInvocationPayload) GetTypeString() string
type EthereumTransactionPayload ¶ added in v0.10.0
type EthereumTransactionPayload interface { GetType() EthereumTransactionType GetTypeString() string }
type EthereumTransactionTransferPayload ¶ added in v0.10.0
type EthereumTransactionTransferPayload struct { Recipient proto.Recipient `json:"recipient"` Asset proto.OptionalAsset `json:"asset"` Amount uint64 `json:"amount"` }
func (*EthereumTransactionTransferPayload) GetType ¶ added in v0.10.0
func (p *EthereumTransactionTransferPayload) GetType() EthereumTransactionType
func (*EthereumTransactionTransferPayload) GetTypeString ¶ added in v0.10.0
func (p *EthereumTransactionTransferPayload) GetTypeString() string
type EthereumTransactionType ¶ added in v0.10.0
type EthereumTransactionType byte
const ( EthereumTransactionTransferType EthereumTransactionType = iota + 1 EthereumTransactionInvocationType )
type ExchangeWithProofsTransactionInfo ¶ added in v0.10.0
type ExchangeWithProofsTransactionInfo struct { proto.ExchangeWithProofs // contains filtered or unexported fields }
func (*ExchangeWithProofsTransactionInfo) GetSpentComplexity ¶ added in v0.10.0
func (txInfoCommon *ExchangeWithProofsTransactionInfo) GetSpentComplexity() int
func (*ExchangeWithProofsTransactionInfo) UnmarshalJSON ¶ added in v0.10.0
func (txInfo *ExchangeWithProofsTransactionInfo) UnmarshalJSON(data []byte) error
type ExchangeWithSigTransactionInfo ¶ added in v0.10.0
type ExchangeWithSigTransactionInfo struct { proto.ExchangeWithSig // contains filtered or unexported fields }
func (*ExchangeWithSigTransactionInfo) GetSpentComplexity ¶ added in v0.10.0
func (txInfoCommon *ExchangeWithSigTransactionInfo) GetSpentComplexity() int
func (*ExchangeWithSigTransactionInfo) UnmarshalJSON ¶ added in v0.10.0
func (txInfo *ExchangeWithSigTransactionInfo) UnmarshalJSON(data []byte) error
type GenesisTransactionInfo ¶ added in v0.10.0
func (*GenesisTransactionInfo) GetSpentComplexity ¶ added in v0.10.0
func (txInfoCommon *GenesisTransactionInfo) GetSpentComplexity() int
func (*GenesisTransactionInfo) UnmarshalJSON ¶ added in v0.10.0
func (txInfo *GenesisTransactionInfo) UnmarshalJSON(data []byte) error
type Headers ¶
type Headers struct { Version uint64 `json:"version"` Timestamp uint64 `json:"timestamp"` Reference proto.BlockID `json:"reference"` NxtConsensus NxtConsensus `json:"nxt-consensus"` TransactionsRoot string `json:"transactionsRoot"` Features []uint64 `json:"features"` DesiredReward int64 `json:"desiredReward"` Generator proto.WavesAddress `json:"generator"` GeneratorPublicKey string `json:"generatorPublicKey"` Signature crypto.Signature `json:"signature"` Blocksize uint64 `json:"blocksize"` TransactionCount uint64 `json:"transactionCount"` Height uint64 `json:"height"` TotalFee int64 `json:"totalFee"` Reward int64 `json:"reward"` VRF string `json:"VRF"` ID proto.BlockID `json:"id"` }
type HttpClient ¶
type HttpClient interface { }
type InvokeAction ¶ added in v0.10.0
type InvokeAction struct { DApp proto.WavesAddress `json:"dApp"` Call proto.FunctionCall `json:"call"` Payments []proto.ScriptPayment `json:"payment"` StateChanges StateChanges `json:"stateChanges"` }
type InvokeScriptTransactionInfo ¶ added in v0.10.0
type InvokeScriptTransactionInfo struct { proto.InvokeScriptWithProofs StateChanges StateChanges // contains filtered or unexported fields }
func (*InvokeScriptTransactionInfo) GetSpentComplexity ¶ added in v0.10.0
func (txInfoCommon *InvokeScriptTransactionInfo) GetSpentComplexity() int
func (*InvokeScriptTransactionInfo) GetStateChanges ¶ added in v0.10.0
func (txInfo *InvokeScriptTransactionInfo) GetStateChanges() *StateChanges
func (*InvokeScriptTransactionInfo) UnmarshalJSON ¶ added in v0.10.0
func (txInfo *InvokeScriptTransactionInfo) UnmarshalJSON(data []byte) error
type IssueAction ¶ added in v0.10.0
type IssueWithProofsTransactionInfo ¶ added in v0.10.0
type IssueWithProofsTransactionInfo struct { proto.IssueWithProofs // contains filtered or unexported fields }
func (*IssueWithProofsTransactionInfo) GetSpentComplexity ¶ added in v0.10.0
func (txInfoCommon *IssueWithProofsTransactionInfo) GetSpentComplexity() int
func (*IssueWithProofsTransactionInfo) UnmarshalJSON ¶ added in v0.10.0
func (txInfo *IssueWithProofsTransactionInfo) UnmarshalJSON(data []byte) error
type IssueWithSigTransactionInfo ¶ added in v0.10.0
type IssueWithSigTransactionInfo struct { proto.IssueWithSig // contains filtered or unexported fields }
func (*IssueWithSigTransactionInfo) GetSpentComplexity ¶ added in v0.10.0
func (txInfoCommon *IssueWithSigTransactionInfo) GetSpentComplexity() int
func (*IssueWithSigTransactionInfo) UnmarshalJSON ¶ added in v0.10.0
func (txInfo *IssueWithSigTransactionInfo) UnmarshalJSON(data []byte) error
type LeaseAction ¶ added in v0.10.0
type LeaseAction struct { ID crypto.Digest `json:"id"` OriginTransactionId crypto.Digest `json:"originTransactionId"` Sender proto.WavesAddress `json:"sender"` Recipient proto.Recipient `json:"recipient"` Amount int32 `json:"amount"` Height int32 `json:"height"` Status LeaseStatus `json:"status"` CancelHeight int32 `json:"cancelHeight,omitempty"` CancelTransactionId crypto.Digest `json:"cancelTransactionId,omitempty"` }
type LeaseCancelAction ¶ added in v0.10.0
type LeaseCancelWithProofsTransactionInfo ¶ added in v0.10.0
type LeaseCancelWithProofsTransactionInfo struct { proto.LeaseCancelWithProofs // contains filtered or unexported fields }
func (*LeaseCancelWithProofsTransactionInfo) GetSpentComplexity ¶ added in v0.10.0
func (txInfoCommon *LeaseCancelWithProofsTransactionInfo) GetSpentComplexity() int
func (*LeaseCancelWithProofsTransactionInfo) UnmarshalJSON ¶ added in v0.10.0
func (txInfo *LeaseCancelWithProofsTransactionInfo) UnmarshalJSON(data []byte) error
type LeaseCancelWithSigTransactionInfo ¶ added in v0.10.0
type LeaseCancelWithSigTransactionInfo struct { proto.LeaseCancelWithSig // contains filtered or unexported fields }
func (*LeaseCancelWithSigTransactionInfo) GetSpentComplexity ¶ added in v0.10.0
func (txInfoCommon *LeaseCancelWithSigTransactionInfo) GetSpentComplexity() int
func (*LeaseCancelWithSigTransactionInfo) UnmarshalJSON ¶ added in v0.10.0
func (txInfo *LeaseCancelWithSigTransactionInfo) UnmarshalJSON(data []byte) error
type LeaseStatus ¶ added in v0.10.0
type LeaseStatus byte
const ( LeaseActiveStatus LeaseStatus = iota + 1 LeaseCanceledStatus )
func (LeaseStatus) MarshalJSON ¶ added in v0.10.0
func (s LeaseStatus) MarshalJSON() ([]byte, error)
func (LeaseStatus) String ¶ added in v0.10.0
func (s LeaseStatus) String() string
func (*LeaseStatus) UnmarshalJSON ¶ added in v0.10.0
func (s *LeaseStatus) UnmarshalJSON(data []byte) error
type LeaseWithProofsTransactionInfo ¶ added in v0.10.0
type LeaseWithProofsTransactionInfo struct { proto.LeaseWithProofs // contains filtered or unexported fields }
func (*LeaseWithProofsTransactionInfo) GetSpentComplexity ¶ added in v0.10.0
func (txInfoCommon *LeaseWithProofsTransactionInfo) GetSpentComplexity() int
func (*LeaseWithProofsTransactionInfo) UnmarshalJSON ¶ added in v0.10.0
func (txInfo *LeaseWithProofsTransactionInfo) UnmarshalJSON(data []byte) error
type LeaseWithSigTransactionInfo ¶ added in v0.10.0
type LeaseWithSigTransactionInfo struct { proto.LeaseWithSig // contains filtered or unexported fields }
func (*LeaseWithSigTransactionInfo) GetSpentComplexity ¶ added in v0.10.0
func (txInfoCommon *LeaseWithSigTransactionInfo) GetSpentComplexity() int
func (*LeaseWithSigTransactionInfo) UnmarshalJSON ¶ added in v0.10.0
func (txInfo *LeaseWithSigTransactionInfo) UnmarshalJSON(data []byte) error
type Leasing ¶ added in v0.2.0
type Leasing struct {
// contains filtered or unexported fields
}
func NewLeasing ¶ added in v0.2.0
NewLeasing creates new leasing.
type LocalScore ¶ added in v0.2.0
type LocalScore string
func (*LocalScore) UnmarshalJSON ¶ added in v0.2.0
func (a *LocalScore) UnmarshalJSON(data []byte) error
type MassTransferTransactionInfo ¶ added in v0.10.0
type MassTransferTransactionInfo struct { proto.MassTransferWithProofs // contains filtered or unexported fields }
func (*MassTransferTransactionInfo) GetSpentComplexity ¶ added in v0.10.0
func (txInfoCommon *MassTransferTransactionInfo) GetSpentComplexity() int
func (*MassTransferTransactionInfo) UnmarshalJSON ¶ added in v0.10.0
func (txInfo *MassTransferTransactionInfo) UnmarshalJSON(data []byte) error
type NxtConsensus ¶
type ParseError ¶
type ParseError struct {
Err error
}
func (ParseError) Error ¶
func (a ParseError) Error() string
type PaymentTransactionInfo ¶ added in v0.10.0
func (*PaymentTransactionInfo) GetSpentComplexity ¶ added in v0.10.0
func (txInfoCommon *PaymentTransactionInfo) GetSpentComplexity() int
func (*PaymentTransactionInfo) UnmarshalJSON ¶ added in v0.10.0
func (txInfo *PaymentTransactionInfo) UnmarshalJSON(data []byte) error
type PeerAllRow ¶
type Peers ¶
type Peers struct {
// contains filtered or unexported fields
}
func (*Peers) Blacklisted ¶
func (*Peers) ClearBlacklist ¶
type PeersBlacklistedRow ¶
type PeersConnect ¶
type PeersConnectedRow ¶
type PeersConnectedRow struct { Address proto.PeerInfo `json:"address"` DeclaredAddress proto.PeerInfo `json:"declaredAddress"` PeerName string `json:"peerName"` PeerNonce uint64 `json:"peerNonce"` ApplicationName string `json:"applicationName"` ApplicationVersion string `json:"applicationVersion"` }
type PeersSuspendedRow ¶
type ReissueAction ¶ added in v0.10.0
type ReissueWithProofsTransactionInfo ¶ added in v0.10.0
type ReissueWithProofsTransactionInfo struct { proto.ReissueWithProofs // contains filtered or unexported fields }
func (*ReissueWithProofsTransactionInfo) GetSpentComplexity ¶ added in v0.10.0
func (txInfoCommon *ReissueWithProofsTransactionInfo) GetSpentComplexity() int
func (*ReissueWithProofsTransactionInfo) UnmarshalJSON ¶ added in v0.10.0
func (txInfo *ReissueWithProofsTransactionInfo) UnmarshalJSON(data []byte) error
type ReissueWithSigTransactionInfo ¶ added in v0.10.0
type ReissueWithSigTransactionInfo struct { proto.ReissueWithSig // contains filtered or unexported fields }
func (*ReissueWithSigTransactionInfo) GetSpentComplexity ¶ added in v0.10.0
func (txInfoCommon *ReissueWithSigTransactionInfo) GetSpentComplexity() int
func (*ReissueWithSigTransactionInfo) UnmarshalJSON ¶ added in v0.10.0
func (txInfo *ReissueWithSigTransactionInfo) UnmarshalJSON(data []byte) error
type RequestError ¶
func (*RequestError) Error ¶
func (a *RequestError) Error() string
type SetAssetScriptTransactionInfo ¶ added in v0.10.0
type SetAssetScriptTransactionInfo struct { proto.SetAssetScriptWithProofs // contains filtered or unexported fields }
func (*SetAssetScriptTransactionInfo) GetSpentComplexity ¶ added in v0.10.0
func (txInfoCommon *SetAssetScriptTransactionInfo) GetSpentComplexity() int
func (*SetAssetScriptTransactionInfo) UnmarshalJSON ¶ added in v0.10.0
func (txInfo *SetAssetScriptTransactionInfo) UnmarshalJSON(data []byte) error
type SetScriptTransactionInfo ¶ added in v0.10.0
type SetScriptTransactionInfo struct { proto.SetScriptWithProofs // contains filtered or unexported fields }
func (*SetScriptTransactionInfo) GetSpentComplexity ¶ added in v0.10.0
func (txInfoCommon *SetScriptTransactionInfo) GetSpentComplexity() int
func (*SetScriptTransactionInfo) UnmarshalJSON ¶ added in v0.10.0
func (txInfo *SetScriptTransactionInfo) UnmarshalJSON(data []byte) error
type SponsorFeeAction ¶ added in v0.10.0
type SponsorshipTransactionInfo ¶ added in v0.10.0
type SponsorshipTransactionInfo struct { proto.SponsorshipWithProofs // contains filtered or unexported fields }
func (*SponsorshipTransactionInfo) GetSpentComplexity ¶ added in v0.10.0
func (txInfoCommon *SponsorshipTransactionInfo) GetSpentComplexity() int
func (*SponsorshipTransactionInfo) UnmarshalJSON ¶ added in v0.10.0
func (txInfo *SponsorshipTransactionInfo) UnmarshalJSON(data []byte) error
type StateChanges ¶ added in v0.10.0
type StateChanges struct { Data DataEntries `json:"data"` Transfers []TransferAction `json:"transfers"` Issues []IssueAction `json:"issues"` Reissues []ReissueAction `json:"reissues"` Burns []BurnAction `json:"burns"` SponsorFees []SponsorFeeAction `json:"sponsorFees"` Leases []LeaseAction `json:"leases"` LeaseCancel []LeaseCancelAction `json:"leaseCancel"` Invokes []InvokeAction `json:"invokes"` }
type StateChangesResponse ¶ added in v0.8.0
type StateChangesResponse struct { Id string `json:"id"` Height uint64 `json:"height"` StateChanges struct { Data proto.DataEntries `json:"data"` Transfers []*struct { Address proto.WavesAddress `json:"address"` Asset crypto.Digest `json:"asset"` Amount uint64 `json:"amount"` } `json:"transfers"` } `json:"stateChanges"` }
type TransactionInfo ¶ added in v0.10.0
type TransactionInfo interface { proto.Transaction GetSpentComplexity() int GetHeight() proto.Height }
type Transactions ¶ added in v0.1.2
type Transactions struct {
// contains filtered or unexported fields
}
func NewTransactions ¶ added in v0.1.2
func NewTransactions(options Options) *Transactions
NewTransactions creates new transaction api section.
func (*Transactions) Address ¶ added in v0.1.2
func (a *Transactions) Address(ctx context.Context, address proto.WavesAddress, limit uint) ([]proto.Transaction, *Response, error)
Address gets list of transactions where specified address has been involved.
func (*Transactions) Broadcast ¶ added in v0.2.0
func (a *Transactions) Broadcast(ctx context.Context, transaction proto.Transaction) (*Response, error)
Broadcast a signed transaction
func (*Transactions) Info ¶ added in v0.1.2
func (a *Transactions) Info(ctx context.Context, id crypto.Digest) (TransactionInfo, *Response, error)
Info gets transaction info.
func (*Transactions) Unconfirmed ¶ added in v0.1.2
func (a *Transactions) Unconfirmed(ctx context.Context) ([]proto.Transaction, *Response, error)
Unconfirmed gets the number of unconfirmed transactions in the UTX pool.
func (*Transactions) UnconfirmedInfo ¶ added in v0.1.2
func (a *Transactions) UnconfirmedInfo(ctx context.Context, id crypto.Digest) (proto.Transaction, *Response, error)
UnconfirmedInfo gets transaction that is in the UTX.
func (*Transactions) UnconfirmedSize ¶ added in v0.1.2
UnconfirmedSize gets the number of unconfirmed transactions in the UTX pool.
type TransactionsField ¶ added in v0.2.0
type TransactionsField []proto.Transaction
func (*TransactionsField) UnmarshalJSON ¶ added in v0.2.0
func (b *TransactionsField) UnmarshalJSON(data []byte) error
type TransferAction ¶ added in v0.10.0
type TransferAction struct { Address proto.WavesAddress `json:"address"` Asset proto.OptionalAsset `json:"asset"` Amount int64 `json:"amount"` }
type TransferWithProofsTransactionInfo ¶ added in v0.10.0
type TransferWithProofsTransactionInfo struct { proto.TransferWithProofs // contains filtered or unexported fields }
func (*TransferWithProofsTransactionInfo) GetSpentComplexity ¶ added in v0.10.0
func (txInfoCommon *TransferWithProofsTransactionInfo) GetSpentComplexity() int
func (*TransferWithProofsTransactionInfo) UnmarshalJSON ¶ added in v0.10.0
func (txInfo *TransferWithProofsTransactionInfo) UnmarshalJSON(data []byte) error
type TransferWithSigTransactionInfo ¶ added in v0.10.0
type TransferWithSigTransactionInfo struct { proto.TransferWithSig // contains filtered or unexported fields }
func (*TransferWithSigTransactionInfo) GetSpentComplexity ¶ added in v0.10.0
func (txInfoCommon *TransferWithSigTransactionInfo) GetSpentComplexity() int
func (*TransferWithSigTransactionInfo) UnmarshalJSON ¶ added in v0.10.0
func (txInfo *TransferWithSigTransactionInfo) UnmarshalJSON(data []byte) error
type UpdateAssetInfoTransactionInfo ¶ added in v0.10.0
type UpdateAssetInfoTransactionInfo struct { proto.UpdateAssetInfoWithProofs // contains filtered or unexported fields }
func (*UpdateAssetInfoTransactionInfo) GetSpentComplexity ¶ added in v0.10.0
func (txInfoCommon *UpdateAssetInfoTransactionInfo) GetSpentComplexity() int
func (*UpdateAssetInfoTransactionInfo) UnmarshalJSON ¶ added in v0.10.0
func (txInfo *UpdateAssetInfoTransactionInfo) UnmarshalJSON(data []byte) error
type Utils ¶ added in v0.1.2
type Utils struct {
// contains filtered or unexported fields
}
func (*Utils) HashSecure ¶ added in v0.1.2
func (a *Utils) HashSecure(ctx context.Context, message string) (*UtilsHashSecure, *Response, error)
Return SecureCryptographicHash of specified message
func (*Utils) ScriptCompile ¶ added in v0.1.2
func (a *Utils) ScriptCompile(ctx context.Context, code string) (*UtilsScriptCompile, *Response, error)
Compiles string code to base64 script representation
func (*Utils) ScriptEstimate ¶ added in v0.1.2
func (a *Utils) ScriptEstimate(ctx context.Context, base64code string) (*UtilsScriptEstimate, *Response, error)
Estimates compiled code in Base64 representation
func (*Utils) SeedByLength ¶ added in v0.1.2
Generate random seed of specified length
type UtilsHashFast ¶ added in v0.1.2
type UtilsHashSecure ¶ added in v0.1.2
type UtilsScriptCompile ¶ added in v0.1.2
type UtilsScriptEstimate ¶ added in v0.1.2
type VerifyText ¶
type VerifyText struct {
Valid bool
}