algod

package
v1.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 5, 2020 License: MIT Imports: 7 Imported by: 63

Documentation

Index

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
}

func (*AccountInformation) Do

func (s *AccountInformation) Do(ctx context.Context, headers ...*common.Header) (result models.Account, err error)

type Block

type Block struct {
	// contains filtered or unexported fields
}

func (*Block) Do

func (s *Block) Do(ctx context.Context, headers ...*common.Header) (result types.Block, err error)

type Client

type Client common.Client

func MakeClient

func MakeClient(address string, apiToken string) (c *Client, err error)

MakeClient is the factory for constructing a ClientV2 for a given endpoint.

func (*Client) AccountInformation

func (c *Client) AccountInformation(account string) *AccountInformation

func (*Client) Block

func (c *Client) Block(round uint64) *Block

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) Status

func (c *Client) Status() *Status

func (*Client) StatusAfterBlock

func (c *Client) StatusAfterBlock(round uint64) *StatusAfterBlock

func (*Client) SuggestedParams

func (c *Client) SuggestedParams() *SuggestedParams

func (*Client) Supply

func (c *Client) Supply() *Supply

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.

func (*Client) Versions

func (c *Client) Versions() *Versions

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.

func (*GetAssetByID) Do added in v1.5.0

func (s *GetAssetByID) Do(ctx context.Context,
	headers ...*common.Header) (response models.Asset, err error)

Do performs HTTP request

type HealthCheck

type HealthCheck struct {
	// contains filtered or unexported fields
}

func (*HealthCheck) Do

func (s *HealthCheck) Do(ctx context.Context, headers ...*common.Header) error

type PendingTransactionInformation

type PendingTransactionInformation struct {
	// contains filtered or unexported fields
}

func (*PendingTransactionInformation) Do

func (*PendingTransactionInformation) Max

type PendingTransactionInformationByAddress

type PendingTransactionInformationByAddress struct {
	// contains filtered or unexported fields
}

func (*PendingTransactionInformationByAddress) Do

func (s *PendingTransactionInformationByAddress) Do(ctx context.Context, headers ...*common.Header) (total uint64, topTransactions []types.SignedTxn, err error)

func (*PendingTransactionInformationByAddress) Max

type PendingTransactions

type PendingTransactions struct {
	// contains filtered or unexported fields
}

func (*PendingTransactions) Do

func (s *PendingTransactions) Do(ctx context.Context, headers ...*common.Header) (total uint64, topTransactions []types.SignedTxn, err error)

func (*PendingTransactions) Max

type SendRawTransaction

type SendRawTransaction struct {
	// contains filtered or unexported fields
}

func (*SendRawTransaction) Do

func (s *SendRawTransaction) Do(ctx context.Context, headers ...*common.Header) (txid string, err error)

type Status

type Status struct {
	// contains filtered or unexported fields
}

func (*Status) Do

func (s *Status) Do(ctx context.Context, headers ...*common.Header) (status models.NodeStatus, err error)

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 Supply

type Supply struct {
	// contains filtered or unexported fields
}

func (*Supply) Do

func (s *Supply) Do(ctx context.Context, headers ...*common.Header) (supply models.Supply, 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

type Versions

type Versions struct {
	// contains filtered or unexported fields
}

func (*Versions) Do

func (s *Versions) Do(ctx context.Context, headers ...*common.Header) (response models.Version, err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL