Documentation ¶
Index ¶
- Variables
- type Addresses
- func (a *Addresses) Addresses(ctx context.Context) ([]proto.Address, *Response, error)
- func (a *Addresses) Balance(ctx context.Context, address proto.Address) (*AddressesBalance, *Response, error)
- func (a *Addresses) BalanceAfterConfirmations(ctx context.Context, address proto.Address, confirmations uint64) (*BalanceAfterConfirmations, *Response, error)
- func (a *Addresses) BalanceDetails(ctx context.Context, address proto.Address) (*AddressesBalanceDetails, *Response, error)
- func (a *Addresses) EffectiveBalance(ctx context.Context, address proto.Address) (*AddressesEffectiveBalance, *Response, error)
- func (a *Addresses) PublicKey(ctx context.Context, publicKey string) (*AddressesPublicKey, *Response, error)
- func (a *Addresses) ScriptInfo(ctx context.Context, address proto.Address) (*AddressesScriptInfo, *Response, error)
- func (a *Addresses) SignText(ctx context.Context, address proto.Address, message string) (*AddressesSignText, *Response, error)
- func (a *Addresses) Validate(ctx context.Context, address proto.Address) (*AddressesValidate, *Response, error)
- func (a *Addresses) VerifyText(ctx context.Context, address proto.Address, body VerifyTextReq) (bool, *Response, error)
- type AddressesBalance
- type AddressesBalanceDetails
- type AddressesEffectiveBalance
- type AddressesPublicKey
- type AddressesScriptInfo
- type AddressesSignText
- type AddressesValidate
- type Alias
- func (a *Alias) Broadcast(ctx context.Context, broadcastReq AliasBroadcastReq) (*CreateAliasV1, *Response, error)
- func (a *Alias) Create(ctx context.Context, createReq AliasCreateReq) (*CreateAliasV1, *Response, error)
- func (a *Alias) Get(ctx context.Context, alias string) (proto.Address, *Response, error)
- func (a *Alias) GetByAddress(ctx context.Context, address proto.Address) ([]*proto.Alias, *Response, error)
- type AliasBroadcastReq
- type AliasCreateReq
- type BalanceAfterConfirmations
- type Block
- type Blocks
- 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) HeightBySignature(ctx context.Context, signature string) (*BlocksHeight, *Response, error)
- type BlocksHeight
- 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.Address) (*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 CreateAliasV1
- type Doer
- type Headers
- type HttpClient
- type NxtConsensus
- type Options
- type ParseError
- 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 RequestError
- type Response
- type Timestamp
- type VerifyText
- type VerifyTextReq
- type Wallet
Constants ¶
This section is empty.
Variables ¶
View Source
var NoApiKeyError = errors.New("no api key provided")
Functions ¶
This section is empty.
Types ¶
type Addresses ¶
type Addresses struct {
// contains filtered or unexported fields
}
func NewAddresses ¶
func (*Addresses) BalanceAfterConfirmations ¶
func (*Addresses) BalanceDetails ¶
func (*Addresses) EffectiveBalance ¶
func (*Addresses) ScriptInfo ¶
type AddressesBalance ¶
type AddressesBalanceDetails ¶
type AddressesPublicKey ¶
type AddressesScriptInfo ¶
type AddressesSignText ¶
type AddressesValidate ¶
type Alias ¶
type Alias struct {
// contains filtered or unexported fields
}
func (*Alias) Broadcast ¶
func (a *Alias) Broadcast(ctx context.Context, broadcastReq AliasBroadcastReq) (*CreateAliasV1, *Response, error)
func (*Alias) Create ¶
func (a *Alias) Create(ctx context.Context, createReq AliasCreateReq) (*CreateAliasV1, *Response, error)
type AliasBroadcastReq ¶
type AliasCreateReq ¶
type Block ¶
type Block struct { Version uint64 `json:"version"` Timestamp uint64 `json:"timestamp"` Reference string `json:"reference"` NxtConsensus NxtConsensus `json:"nxt-consensus"` Features []uint64 `json:"features"` Generator string `json:"generator"` Signature string `json:"signature"` Blocksize uint64 `json:"blocksize"` TransactionCount uint64 `json:"transactionCount"` Fee uint64 `json:"fee"` Height uint64 `json:"height"` }
type Blocks ¶
type Blocks struct {
// contains filtered or unexported fields
}
func (*Blocks) HeadersLast ¶
func (*Blocks) HeadersSeq ¶
func (*Blocks) HeightBySignature ¶
type BlocksHeight ¶
type BlocksHeight struct {
Height uint64 `json:"height"`
}
type Client ¶
type Client struct { Addresses *Addresses Blocks *Blocks Wallet *Wallet Alias *Alias Peers *Peers Consensus *Consensus // contains filtered or unexported fields }
func (Client) GetOptions ¶
type Consensus ¶
type Consensus struct {
// contains filtered or unexported fields
}
func (*Consensus) BaseTarget ¶
Base target of a last block
func (*Consensus) BaseTargetByBlock ¶
func (a *Consensus) BaseTargetByBlock(ctx context.Context, blockID string) (uint64, *Response, error)
Base target of a block with specified id
func (Consensus) GeneratingBalance ¶
func (a Consensus) GeneratingBalance(ctx context.Context, address proto.Address) (*ConsensusGeneratingBalance, *Response, error)
Account's generating balance(the same as balance atm)
func (*Consensus) GenerationSignature ¶
Generation signature of a last block
type ConsensusBaseTarget ¶
type CreateAliasV1 ¶
type CreateAliasV1 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 Timestamp `json:"timestamp,omitempty"` }
type Headers ¶
type Headers struct { Version uint64 `json:"version"` Timestamp uint64 `json:"timestamp"` Reference string `json:"reference"` NxtConsensus NxtConsensus `json:"nxt-consensus"` Features []uint64 `json:"features"` Generator string `json:"generator"` Signature string `json:"signature"` Blocksize uint64 `json:"blocksize"` TransactionCount uint64 `json:"transactionCount"` Height uint64 `json:"height"` }
type HttpClient ¶
type HttpClient interface { }
type NxtConsensus ¶
type ParseError ¶
type ParseError struct {
Err error
}
func (ParseError) Error ¶
func (a ParseError) Error() string
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 RequestError ¶
func (*RequestError) Error ¶
func (a *RequestError) Error() string
type Timestamp ¶
type Timestamp uint64
timestamp in milliseconds
func NewTimestampFromTime ¶
type VerifyText ¶
type VerifyText struct {
Valid bool
}
type VerifyTextReq ¶
Click to show internal directories.
Click to hide internal directories.