Documentation ¶
Index ¶
- type AccountInformation
- type Block
- type Client
- func (c *Client) AccountInformation(account string) *AccountInformation
- func (c *Client) Block(round uint64) *Block
- func (c *Client) GetApplicationByID(applicationId uint64) *GetApplicationByID
- func (c *Client) GetAssetByID(assetId uint64) *GetAssetByID
- func (c *Client) HealthCheck() *HealthCheck
- func (c *Client) PendingTransactionInformation(txid string) *PendingTransactionInformation
- func (c *Client) PendingTransactions() *PendingTransactions
- func (c *Client) PendingTransactionsByAddress(address string) *PendingTransactionInformationByAddress
- func (c *Client) SendRawTransaction(tx []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 HealthCheck
- type PendingTransactionInformation
- type PendingTransactionInformationByAddress
- type PendingTransactions
- 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
}
type Client ¶
func MakeClient ¶
MakeClient is the factory for constructing a ClientV2 for a given endpoint.
func (*Client) AccountInformation ¶
func (c *Client) AccountInformation(account string) *AccountInformation
func (*Client) GetApplicationByID ¶ added in v1.5.0
func (c *Client) GetApplicationByID(applicationId uint64) *GetApplicationByID
/v2/applications/{application-id} Given a application id, it returns application information including creator, approval and clear programs, global and local schemas, and global state.
func (*Client) GetAssetByID ¶ added in v1.5.0
func (c *Client) GetAssetByID(assetId uint64) *GetAssetByID
/v2/assets/{asset-id} Given a asset id, it returns asset information including creator, name, total supply and special addresses.
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) *PendingTransactionInformationByAddress
func (*Client) SendRawTransaction ¶
func (c *Client) SendRawTransaction(tx []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
/v2/teal/compile Given TEAL source code in plain text, return base64 encoded program bytes and base32 SHA512_256 hash of program bytes (Address style).
func (*Client) TealDryrun ¶ added in v1.5.0
func (c *Client) TealDryrun(request models.DryrunRequest) *TealDryrun
/v2/teal/dryrun Executes TEAL program(s) in context and returns debugging information about the execution.
type GetApplicationByID ¶ added in v1.5.0
type GetApplicationByID struct {
// contains filtered or unexported fields
}
GetApplicationByID /v2/applications/{application-id} 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 HTTP request
type GetAssetByID ¶ added in v1.5.0
type GetAssetByID struct {
// contains filtered or unexported fields
}
GetAssetByID /v2/assets/{asset-id} Given a asset id, it returns asset information including creator, name, total supply and special addresses.
type HealthCheck ¶
type HealthCheck struct {
// contains filtered or unexported fields
}
type PendingTransactionInformation ¶
type PendingTransactionInformation struct {
// contains filtered or unexported fields
}
func (*PendingTransactionInformation) Do ¶
func (s *PendingTransactionInformation) Do(ctx context.Context, headers ...*common.Header) (response models.PendingTransactionInfoResponse, stxn types.SignedTxn, err error)
func (*PendingTransactionInformation) Max ¶
func (s *PendingTransactionInformation) Max(max uint64) *PendingTransactionInformation
type PendingTransactionInformationByAddress ¶
type PendingTransactionInformationByAddress struct {
// contains filtered or unexported fields
}
func (*PendingTransactionInformationByAddress) Max ¶
func (s *PendingTransactionInformationByAddress) Max(max uint64) *PendingTransactionInformationByAddress
type PendingTransactions ¶
type PendingTransactions struct {
// contains filtered or unexported fields
}
func (*PendingTransactions) Max ¶
func (s *PendingTransactions) Max(max uint64) *PendingTransactions
type SendRawTransaction ¶
type SendRawTransaction struct {
// contains filtered or unexported fields
}
type StatusAfterBlock ¶
type StatusAfterBlock struct {
// contains filtered or unexported fields
}
func (*StatusAfterBlock) Do ¶
func (s *StatusAfterBlock) Do(ctx context.Context, headers ...*common.Header) (status models.NodeStatus, err error)
type SuggestedParams ¶
type SuggestedParams struct {
// contains filtered or unexported fields
}
func (*SuggestedParams) Do ¶
func (s *SuggestedParams) Do(ctx context.Context, headers ...*common.Header) (params types.SuggestedParams, err error)
type TealCompile ¶ added in v1.5.0
type TealCompile struct {
// contains filtered or unexported fields
}
TealCompile /v2/teal/compile Given TEAL source code in plain text, return base64 encoded program bytes and base32 SHA512_256 hash of program bytes (Address style).
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 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 /v2/teal/dryrun Executes TEAL program(s) in context and returns debugging information about the execution.
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
Source Files ¶
- accountInformation.go
- algod.go
- application_client.go
- block.go
- dryrun.go
- getApplicationByID.go
- getAssetByID.go
- healthCheck.go
- pendingTransactionInformation.go
- pendingTransactions.go
- pendingTransactionsByAddress.go
- sendRawTransaction.go
- status.go
- statusAfterBlock.go
- suggestedParams.go
- supply.go
- tealCompile.go
- tealDryrun.go
- versions.go