Documentation ¶
Index ¶
- Constants
- type Address
- type Arguments
- type CreateTransaction
- type GetAccount
- type GetBlock
- type GetBlockByIDs
- type GetBlockPayload
- type GetByIDRequest
- type GetCollection
- type GetEvents
- type GetExecutionResult
- type GetExecutionResultByBlockIDs
- type GetScript
- type GetTransaction
- type GetTransactionResult
- type Height
- type Heights
- type ID
- type IDs
- type ProposalKey
- type Request
- func (rd *Request) CreateTransactionRequest() (CreateTransaction, error)
- func (rd *Request) Expands(field string) bool
- func (rd *Request) GetAccountRequest() (GetAccount, error)
- func (rd *Request) GetBlockByIDsRequest() (GetBlockByIDs, error)
- func (rd *Request) GetBlockPayloadRequest() (GetBlockPayload, error)
- func (rd *Request) GetBlockRequest() (GetBlock, error)
- func (rd *Request) GetCollectionRequest() (GetCollection, error)
- func (rd *Request) GetEventsRequest() (GetEvents, error)
- func (rd *Request) GetExecutionResultByBlockIDsRequest() (GetExecutionResultByBlockIDs, error)
- func (rd *Request) GetExecutionResultRequest() (GetExecutionResult, error)
- func (rd *Request) GetQueryParam(name string) string
- func (rd *Request) GetQueryParams(name string) []string
- func (rd *Request) GetScriptRequest() (GetScript, error)
- func (rd *Request) GetTransactionRequest() (GetTransaction, error)
- func (rd *Request) GetTransactionResultRequest() (GetTransactionResult, error)
- func (rd *Request) GetVar(name string) string
- func (rd *Request) GetVars(name string) []string
- func (rd *Request) Selects() []string
- type Script
- type Signature
- type Transaction
- type TransactionSignature
- type TransactionSignatures
Constants ¶
View Source
const EmptyHeight uint64 = math.MaxUint64 - 3
View Source
const ExpandsTransactions = "transactions"
View Source
const FinalHeight uint64 = math.MaxUint64 - 2
View Source
const MaxAllowedHeights = 50
View Source
const MaxIDsLength = 50
View Source
const SealedHeight uint64 = math.MaxUint64 - 1
Special height values
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateTransaction ¶
type CreateTransaction struct {
Transaction flow.TransactionBody
}
func (*CreateTransaction) Build ¶
func (c *CreateTransaction) Build(r *Request) error
type GetAccount ¶
func (*GetAccount) Build ¶
func (g *GetAccount) Build(r *Request) error
type GetBlock ¶
type GetBlock struct { Heights []uint64 StartHeight uint64 EndHeight uint64 FinalHeight bool SealedHeight bool }
func (*GetBlock) HasHeights ¶
type GetBlockByIDs ¶
type GetBlockByIDs struct {
IDs []flow.Identifier
}
func (*GetBlockByIDs) Build ¶
func (g *GetBlockByIDs) Build(r *Request) error
func (*GetBlockByIDs) Parse ¶
func (g *GetBlockByIDs) Parse(rawIds []string) error
type GetBlockPayload ¶
type GetBlockPayload struct {
GetByIDRequest
}
type GetByIDRequest ¶
type GetByIDRequest struct {
ID flow.Identifier
}
func (*GetByIDRequest) Build ¶
func (g *GetByIDRequest) Build(r *Request) error
func (*GetByIDRequest) Parse ¶
func (g *GetByIDRequest) Parse(rawID string) error
type GetCollection ¶
type GetCollection struct { GetByIDRequest ExpandsTransactions bool }
func (*GetCollection) Build ¶
func (g *GetCollection) Build(r *Request) error
type GetEvents ¶
type GetEvents struct { StartHeight uint64 EndHeight uint64 Type string BlockIDs []flow.Identifier }
type GetExecutionResult ¶
type GetExecutionResult struct {
GetByIDRequest
}
type GetExecutionResultByBlockIDs ¶
type GetExecutionResultByBlockIDs struct {
BlockIDs []flow.Identifier
}
func (*GetExecutionResultByBlockIDs) Build ¶
func (g *GetExecutionResultByBlockIDs) Build(r *Request) error
func (*GetExecutionResultByBlockIDs) Parse ¶
func (g *GetExecutionResultByBlockIDs) Parse(rawIDs []string) error
type GetTransaction ¶
type GetTransaction struct { GetByIDRequest ExpandsResult bool }
func (*GetTransaction) Build ¶
func (g *GetTransaction) Build(r *Request) error
type GetTransactionResult ¶
type GetTransactionResult struct {
GetByIDRequest
}
type ProposalKey ¶
type ProposalKey flow.ProposalKey
func (ProposalKey) Flow ¶
func (p ProposalKey) Flow() flow.ProposalKey
func (*ProposalKey) Parse ¶
func (p *ProposalKey) Parse(raw models.ProposalKey) error
type Request ¶
type Request struct { *http.Request ExpandFields map[string]bool Chain flow.Chain // contains filtered or unexported fields }
Request a convenience wrapper around the http request to make it easy to read request query params
func Decorate ¶
Decorate takes http request and applies functions to produce our custom request object decorated with values we need
func (*Request) CreateTransactionRequest ¶
func (rd *Request) CreateTransactionRequest() (CreateTransaction, error)
func (*Request) GetAccountRequest ¶
func (rd *Request) GetAccountRequest() (GetAccount, error)
func (*Request) GetBlockByIDsRequest ¶
func (rd *Request) GetBlockByIDsRequest() (GetBlockByIDs, error)
func (*Request) GetBlockPayloadRequest ¶
func (rd *Request) GetBlockPayloadRequest() (GetBlockPayload, error)
func (*Request) GetBlockRequest ¶
func (*Request) GetCollectionRequest ¶
func (rd *Request) GetCollectionRequest() (GetCollection, error)
func (*Request) GetEventsRequest ¶
func (*Request) GetExecutionResultByBlockIDsRequest ¶
func (rd *Request) GetExecutionResultByBlockIDsRequest() (GetExecutionResultByBlockIDs, error)
func (*Request) GetExecutionResultRequest ¶
func (rd *Request) GetExecutionResultRequest() (GetExecutionResult, error)
func (*Request) GetQueryParam ¶
func (*Request) GetQueryParams ¶
func (*Request) GetScriptRequest ¶
func (*Request) GetTransactionRequest ¶
func (rd *Request) GetTransactionRequest() (GetTransaction, error)
func (*Request) GetTransactionResultRequest ¶
func (rd *Request) GetTransactionResultRequest() (GetTransactionResult, error)
type Transaction ¶
type Transaction flow.TransactionBody
func (Transaction) Flow ¶
func (t Transaction) Flow() flow.TransactionBody
type TransactionSignature ¶
type TransactionSignature flow.TransactionSignature
func (TransactionSignature) Flow ¶
func (s TransactionSignature) Flow() flow.TransactionSignature
type TransactionSignatures ¶
type TransactionSignatures []TransactionSignature
func (TransactionSignatures) Flow ¶
func (t TransactionSignatures) Flow() []flow.TransactionSignature
func (*TransactionSignatures) Parse ¶
func (t *TransactionSignatures) Parse(rawSigs []models.TransactionSignature) error
Click to show internal directories.
Click to hide internal directories.