Documentation ¶
Index ¶
- type AccountInformation
- type AccountInformationParams
- type Block
- type BlockParams
- type BlockRaw
- type Client
- func (c *Client) AccountInformation(address string) *AccountInformation
- func (c *Client) Block(round uint64) *Block
- func (c *Client) BlockRaw(round uint64) *BlockRaw
- func (c *Client) GetApplicationByID(applicationId uint64) *GetApplicationByID
- func (c *Client) GetAssetByID(assetId uint64) *GetAssetByID
- func (c *Client) GetGenesis() *GetGenesis
- func (c *Client) GetProof(round uint64, txid string) *GetProof
- func (c *Client) HealthCheck() *HealthCheck
- func (c *Client) PendingTransactionInformation(txid string) *PendingTransactionInformation
- func (c *Client) PendingTransactions() *PendingTransactions
- func (c *Client) PendingTransactionsByAddress(address string) *PendingTransactionsByAddress
- func (c *Client) SendRawTransaction(rawtxn []byte) *SendRawTransaction
- func (c *Client) Status() *Status
- func (c *Client) StatusAfterBlock(round uint64) *StatusAfterBlock
- func (c *Client) SuggestedParams() *SuggestedParams
- func (c *Client) Supply() *Supply
- func (c *Client) TealCompile(source []byte) *TealCompile
- func (c *Client) TealDryrun(request models.DryrunRequest) *TealDryrun
- func (c *Client) Versions() *Versions
- type GetApplicationByID
- type GetAssetByID
- type GetBlockParams
- type GetGenesis
- type GetProof
- type GetProofParams
- type HealthCheck
- type PendingTransactionInformation
- type PendingTransactionInformationParams
- type PendingTransactions
- type PendingTransactionsByAddress
- type PendingTransactionsByAddressParams
- type PendingTransactionsParams
- type SendRawTransaction
- type Status
- type StatusAfterBlock
- type SuggestedParams
- type Supply
- type TealCompile
- type TealDryRun
- type TealDryrun
- type Versions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountInformation ¶
type AccountInformation struct {
// contains filtered or unexported fields
}
AccountInformation given a specific account public key, this call returns the accounts status, balance and spendable amounts
type AccountInformationParams ¶ added in v1.6.0
type AccountInformationParams struct { // Format configures whether the response object is JSON or MessagePack encoded. Format string `url:"format,omitempty"` }
AccountInformationParams contains all of the query parameters for url serialization.
type Block ¶
type Block struct {
// contains filtered or unexported fields
}
Block get the block for the given round.
type BlockParams ¶ added in v1.6.0
type BlockParams struct { // Format configures whether the response object is JSON or MessagePack encoded. Format string `url:"format,omitempty"` }
BlockParams contains all of the query parameters for url serialization.
type BlockRaw ¶ added in v1.5.1
type BlockRaw struct {
// contains filtered or unexported fields
}
BlockRaw contains metadata required to execute a BlockRaw query.
type Client ¶
func MakeClient ¶
MakeClient is the factory for constructing a ClientV2 for a given endpoint.
func MakeClientWithHeaders ¶ added in v1.8.0
func MakeClientWithHeaders(address string, apiToken string, headers []*common.Header) (c *Client, err error)
MakeClientWithHeaders is the factory for constructing a ClientV2 for a given endpoint with custom headers.
func (*Client) AccountInformation ¶
func (c *Client) AccountInformation(address string) *AccountInformation
func (*Client) GetApplicationByID ¶ added in v1.5.0
func (c *Client) GetApplicationByID(applicationId uint64) *GetApplicationByID
func (*Client) GetAssetByID ¶ added in v1.5.0
func (c *Client) GetAssetByID(assetId uint64) *GetAssetByID
func (*Client) GetGenesis ¶ added in v1.6.0
func (c *Client) GetGenesis() *GetGenesis
func (*Client) HealthCheck ¶
func (c *Client) HealthCheck() *HealthCheck
func (*Client) PendingTransactionInformation ¶
func (c *Client) PendingTransactionInformation(txid string) *PendingTransactionInformation
func (*Client) PendingTransactions ¶
func (c *Client) PendingTransactions() *PendingTransactions
func (*Client) PendingTransactionsByAddress ¶
func (c *Client) PendingTransactionsByAddress(address string) *PendingTransactionsByAddress
func (*Client) SendRawTransaction ¶
func (c *Client) SendRawTransaction(rawtxn []byte) *SendRawTransaction
func (*Client) StatusAfterBlock ¶
func (c *Client) StatusAfterBlock(round uint64) *StatusAfterBlock
func (*Client) SuggestedParams ¶
func (c *Client) SuggestedParams() *SuggestedParams
func (*Client) TealCompile ¶ added in v1.5.0
func (c *Client) TealCompile(source []byte) *TealCompile
func (*Client) TealDryrun ¶ added in v1.5.0
func (c *Client) TealDryrun(request models.DryrunRequest) *TealDryrun
type GetApplicationByID ¶ added in v1.5.0
type GetApplicationByID struct {
// contains filtered or unexported fields
}
GetApplicationByID given a application id, it returns application information including creator, approval and clear programs, global and local schemas, and global state.
func (*GetApplicationByID) Do ¶ added in v1.5.0
func (s *GetApplicationByID) Do(ctx context.Context, headers ...*common.Header) (response models.Application, err error)
Do performs the HTTP request
type GetAssetByID ¶ added in v1.5.0
type GetAssetByID struct {
// contains filtered or unexported fields
}
GetAssetByID given a asset id, it returns asset information including creator, name, total supply and special addresses.
type GetBlockParams ¶ added in v1.6.0
type GetBlockParams struct { // Return raw msgpack block bytes or json Format string `url:"format,omitempty"` }
GetBlockParams defines parameters for GetBlock.
type GetGenesis ¶ added in v1.6.0
type GetGenesis struct {
// contains filtered or unexported fields
}
GetGenesis returns the entire genesis file in json.
type GetProof ¶ added in v1.6.0
type GetProof struct {
// contains filtered or unexported fields
}
GetProof get a Merkle proof for a transaction in a block.
type GetProofParams ¶ added in v1.6.0
type GetProofParams struct { // Format configures whether the response object is JSON or MessagePack encoded. Format string `url:"format,omitempty"` }
GetProofParams contains all of the query parameters for url serialization.
type HealthCheck ¶
type HealthCheck struct {
// contains filtered or unexported fields
}
HealthCheck returns OK if healthy.
type PendingTransactionInformation ¶
type PendingTransactionInformation struct {
// contains filtered or unexported fields
}
PendingTransactionInformation given a transaction id of a recently submitted transaction, it returns information about it. There are several cases when this might succeed: - transaction committed (committed round > 0) - transaction still in the pool (committed round = 0, pool error = "") - transaction removed from pool due to error (committed round = 0, pool error != "") Or the transaction may have happened sufficiently long ago that the node no longer remembers it, and this will return an error.
type PendingTransactionInformationParams ¶ added in v1.6.0
type PendingTransactionInformationParams struct { // Format configures whether the response object is JSON or MessagePack encoded. Format string `url:"format,omitempty"` }
PendingTransactionInformationParams contains all of the query parameters for url serialization.
type PendingTransactions ¶
type PendingTransactions struct {
// contains filtered or unexported fields
}
PendingTransactions get the list of pending transactions, sorted by priority, in decreasing order, truncated at the end at MAX. If MAX = 0, returns all pending transactions.
func (*PendingTransactions) Do ¶
func (s *PendingTransactions) Do(ctx context.Context, headers ...*common.Header) (total uint64, topTransactions []types.SignedTxn, err error)
Do performs the HTTP request
func (*PendingTransactions) Max ¶
func (s *PendingTransactions) Max(Max uint64) *PendingTransactions
Max truncated number of transactions to display. If max=0, returns all pending txns.
type PendingTransactionsByAddress ¶ added in v1.6.0
type PendingTransactionsByAddress struct {
// contains filtered or unexported fields
}
PendingTransactionsByAddress get the list of pending transactions by address, sorted by priority, in decreasing order, truncated at the end at MAX. If MAX = 0, returns all pending transactions.
func (*PendingTransactionsByAddress) Do ¶ added in v1.6.0
func (s *PendingTransactionsByAddress) Do(ctx context.Context, headers ...*common.Header) (total uint64, topTransactions []types.SignedTxn, err error)
Do performs the HTTP request
func (*PendingTransactionsByAddress) Max ¶ added in v1.6.0
func (s *PendingTransactionsByAddress) Max(Max uint64) *PendingTransactionsByAddress
Max truncated number of transactions to display. If max=0, returns all pending txns.
type PendingTransactionsByAddressParams ¶ added in v1.6.0
type PendingTransactionsByAddressParams struct { // Format configures whether the response object is JSON or MessagePack encoded. Format string `url:"format,omitempty"` // Max truncated number of transactions to display. If max=0, returns all pending // txns. Max uint64 `url:"max,omitempty"` }
PendingTransactionsByAddressParams contains all of the query parameters for url serialization.
type PendingTransactionsParams ¶ added in v1.6.0
type PendingTransactionsParams struct { // Format configures whether the response object is JSON or MessagePack encoded. Format string `url:"format,omitempty"` // Max truncated number of transactions to display. If max=0, returns all pending // txns. Max uint64 `url:"max,omitempty"` }
PendingTransactionsParams contains all of the query parameters for url serialization.
type SendRawTransaction ¶
type SendRawTransaction struct {
// contains filtered or unexported fields
}
SendRawTransaction broadcasts a raw transaction to the network.
type Status ¶
type Status struct {
// contains filtered or unexported fields
}
Status gets the current node status.
type StatusAfterBlock ¶
type StatusAfterBlock struct {
// contains filtered or unexported fields
}
StatusAfterBlock waits for a block to appear after round {round} and returns the node's status at the time.
func (*StatusAfterBlock) Do ¶
func (s *StatusAfterBlock) Do(ctx context.Context, headers ...*common.Header) (response models.NodeStatus, err error)
Do performs the HTTP request
type SuggestedParams ¶
type SuggestedParams struct {
// contains filtered or unexported fields
}
SuggestedParams get parameters for constructing a new transaction
func (*SuggestedParams) Do ¶
func (s *SuggestedParams) Do(ctx context.Context, headers ...*common.Header) (params types.SuggestedParams, err error)
Do performs the HTTP request
type Supply ¶
type Supply struct {
// contains filtered or unexported fields
}
Supply get the current supply reported by the ledger.
type TealCompile ¶ added in v1.5.0
type TealCompile struct {
// contains filtered or unexported fields
}
TealCompile given TEAL source code in plain text, return base64 encoded program bytes and base32 SHA512_256 hash of program bytes (Address style). This endpoint is only enabled when a node's configureation file sets EnableDeveloperAPI to true.
func (*TealCompile) Do ¶ added in v1.5.0
func (s *TealCompile) Do(ctx context.Context, headers ...*common.Header) (response models.CompileResponse, err error)
Do performs the HTTP request
type TealDryRun ¶ added in v1.5.0
type TealDryRun struct {
// contains filtered or unexported fields
}
TealDryRun /v2/teal/dryrun
func (*TealDryRun) Do ¶ added in v1.5.0
func (s *TealDryRun) Do( ctx context.Context, headers ...*common.Header, ) (response models.DryrunResponse, err error)
Do performs HTTP request
type TealDryrun ¶ added in v1.5.0
type TealDryrun struct {
// contains filtered or unexported fields
}
TealDryrun executes TEAL program(s) in context and returns debugging information about the execution. This endpoint is only enabled when a node's configureation file sets EnableDeveloperAPI to true.
func (*TealDryrun) Do ¶ added in v1.5.0
func (s *TealDryrun) Do(ctx context.Context, headers ...*common.Header) (response models.DryrunResponse, err error)
Do performs the HTTP request
Source Files ¶
- accountInformation.go
- algod.go
- blockRaw.go
- dryrun.go
- getApplicationByID.go
- getAssetByID.go
- getBlock.go
- getGenesis.go
- getPendingTransactions.go
- getPendingTransactionsByAddress.go
- getProof.go
- getStatus.go
- getSupply.go
- getVersion.go
- healthCheck.go
- pendingTransactionInformation.go
- rawTransaction.go
- tealCompile.go
- tealDryrun.go
- transactionParams.go
- waitForBlock.go