Documentation ¶
Index ¶
- Constants
- func ParseAddress(raw string) (flow.Address, error)
- type Arguments
- type CreateTransaction
- type EventType
- type EventTypes
- type GetAccount
- type GetAccountKey
- 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) GetAccountKeyRequest() (GetAccountKey, error)
- 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
- func (rd *Request) SubscribeEventsRequest() (SubscribeEvents, error)
- type Script
- type Signature
- type SubscribeEvents
- type Transaction
- type TransactionOptionals
- 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 MaxBlockRequestHeightRange = 50
View Source
const MaxEventRequestHeightRange = 250
View Source
const MaxIDsLength = 50
View Source
const SealedHeight uint64 = math.MaxUint64 - 1
Special height values
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CreateTransaction ¶
type CreateTransaction struct {
Transaction flow.TransactionBody
}
func (*CreateTransaction) Build ¶
func (c *CreateTransaction) Build(r *Request) error
type EventTypes ¶ added in v0.32.0
type EventTypes []EventType
func (EventTypes) Flow ¶ added in v0.32.0
func (e EventTypes) Flow() []string
func (*EventTypes) Parse ¶ added in v0.32.0
func (e *EventTypes) Parse(raw []string) error
type GetAccount ¶
func (*GetAccount) Build ¶
func (g *GetAccount) Build(r *Request) error
type GetAccountKey ¶ added in v0.32.0
func (*GetAccountKey) Build ¶ added in v0.32.0
func (g *GetAccountKey) 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 TransactionOptionals ExpandsResult bool }
func (*GetTransaction) Build ¶
func (g *GetTransaction) Build(r *Request) error
type GetTransactionResult ¶
type GetTransactionResult struct { GetByIDRequest TransactionOptionals }
func (*GetTransactionResult) Build ¶ added in v0.31.0
func (g *GetTransactionResult) Build(r *Request) error
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) GetAccountKeyRequest ¶ added in v0.32.0
func (rd *Request) GetAccountKeyRequest() (GetAccountKey, 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)
func (*Request) SubscribeEventsRequest ¶ added in v0.32.0
func (rd *Request) SubscribeEventsRequest() (SubscribeEvents, error)
type SubscribeEvents ¶ added in v0.32.0
type SubscribeEvents struct { StartBlockID flow.Identifier StartHeight uint64 EventTypes []string Addresses []string Contracts []string }
func (*SubscribeEvents) Build ¶ added in v0.32.0
func (g *SubscribeEvents) Build(r *Request) error
type Transaction ¶
type Transaction flow.TransactionBody
func (Transaction) Flow ¶
func (t Transaction) Flow() flow.TransactionBody
type TransactionOptionals ¶ added in v0.31.0
type TransactionOptionals struct { BlockID flow.Identifier CollectionID flow.Identifier }
func (*TransactionOptionals) Parse ¶ added in v0.31.0
func (t *TransactionOptionals) Parse(r *Request) error
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
Source Files ¶
- address.go
- arguments.go
- create_transaction.go
- event_type.go
- get_account.go
- get_account_key.go
- get_block.go
- get_collection.go
- get_events.go
- get_execution_result.go
- get_script.go
- get_transaction.go
- height.go
- helpers.go
- id.go
- proposal_key.go
- request.go
- script.go
- signatures.go
- subscribe_events.go
- transaction.go
Click to show internal directories.
Click to hide internal directories.