Documentation ¶
Overview ¶
* Access API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
* Access API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
* Access API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
* Access API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
* Access API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
* Access API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
* Access API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
* Access API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
* Access API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
* Access API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
* Access API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
* Access API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
* Access API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
* Access API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
* Access API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
* Access API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
* Access API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
* Access API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
* Access API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
* Access API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
* Access API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
* Access API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
* Access API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
* Access API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
* Access API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
* Access API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
* Access API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
* Access API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
* Access API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
* Access API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
* Access API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
* Access API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
* Access API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
* Access API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
* Access API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
* Access API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
* Access API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
* Access API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
Index ¶
- Constants
- type Account
- type AccountBalance
- type AccountExpandable
- type AccountKeys
- type AccountPublicKey
- type AccountPublicKeys
- type AggregatedSignature
- type AggregatedSignatures
- type Block
- type BlockEvents
- type BlockExpandable
- type BlockHeader
- type BlockHeight
- type BlockPayload
- type BlockSeal
- type BlockSeals
- type BlocksEvents
- type Chunk
- type Collection
- type CollectionExpandable
- type CollectionGuarantee
- type CollectionGuarantees
- type CompatibleRange
- type Error
- type Event
- type Events
- type ExecutionResult
- type HashingAlgorithm
- type InlineResponse200
- type LinkFunc
- type LinkGenerator
- type LinkGeneratorImpl
- func (generator *LinkGeneratorImpl) AccountLink(address string) (string, error)
- func (generator *LinkGeneratorImpl) BlockLink(id flow.Identifier) (string, error)
- func (generator *LinkGeneratorImpl) CollectionLink(id flow.Identifier) (string, error)
- func (generator *LinkGeneratorImpl) ExecutionResultLink(id flow.Identifier) (string, error)
- func (generator *LinkGeneratorImpl) PayloadLink(id flow.Identifier) (string, error)
- func (generator *LinkGeneratorImpl) TransactionLink(id flow.Identifier) (string, error)
- func (generator *LinkGeneratorImpl) TransactionResultLink(id flow.Identifier) (string, error)
- type Links
- type ModelError
- type NetworkParameters
- type NodeVersionInfo
- type OneOfBlockHeight
- type ProposalKey
- type ScriptsBody
- type SigningAlgorithm
- type StatusError
- type Transaction
- type TransactionExecution
- type TransactionExpandable
- type TransactionResult
- type TransactionResultExpandable
- type TransactionSignature
- type TransactionSignatures
- type TransactionStatus
- type Transactions
- type TransactionsBody
Constants ¶
const ( PENDING = PENDING_TransactionStatus FINALIZED = FINALIZED_TransactionStatus EXECUTED = EXECUTED_TransactionStatus SEALED = SEALED_TransactionStatus EXPIRED = EXPIRED_TransactionStatus )
const ( PENDING_RESULT = PENDING_TransactionExecution SUCCESS_RESULT = SUCCESS_TransactionExecution FAILURE_RESULT = FAILURE_TransactionExecution )
const ExpandsTransactions = "transactions"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Account ¶
type Account struct { Address string `json:"address"` // Flow balance of the account. Balance string `json:"balance"` Keys []AccountPublicKey `json:"keys,omitempty"` Contracts map[string]string `json:"contracts,omitempty"` Expandable *AccountExpandable `json:"_expandable"` Links *Links `json:"_links,omitempty"` }
type AccountBalance ¶ added in v0.37.1
type AccountBalance struct { // Flow balance of the account. Balance string `json:"balance"` }
func (*AccountBalance) Build ¶ added in v0.37.1
func (b *AccountBalance) Build(balance uint64)
type AccountExpandable ¶
type AccountKeys ¶ added in v0.37.1
type AccountKeys []AccountPublicKey
func (*AccountKeys) Build ¶ added in v0.37.1
func (a *AccountKeys) Build(accountKeys []flow.AccountPublicKey)
type AccountPublicKey ¶
type AccountPublicKey struct { // Index of the public key. Index string `json:"index"` // Hex encoded public key. PublicKey string `json:"public_key"` SigningAlgorithm *SigningAlgorithm `json:"signing_algorithm"` HashingAlgorithm *HashingAlgorithm `json:"hashing_algorithm"` // Current account sequence number. SequenceNumber string `json:"sequence_number"` // Weight of the key. Weight string `json:"weight"` // Flag indicating whether the key is active or not. Revoked bool `json:"revoked"` }
func (*AccountPublicKey) Build ¶
func (a *AccountPublicKey) Build(k flow.AccountPublicKey)
type AccountPublicKeys ¶
type AccountPublicKeys struct {
Keys []AccountPublicKey `json:"keys"`
}
func (*AccountPublicKeys) Build ¶
func (a *AccountPublicKeys) Build(accountKeys []flow.AccountPublicKey)
Build function use model AccountPublicKeys type for GetAccountKeys call AccountPublicKeys is an auto-generated type from the openapi spec
type AggregatedSignature ¶
type AggregatedSignature struct { VerifierSignatures []string `json:"verifier_signatures"` SignerIds []string `json:"signer_ids"` }
func (*AggregatedSignature) Build ¶
func (a *AggregatedSignature) Build(signature flow.AggregatedSignature)
type AggregatedSignatures ¶
type AggregatedSignatures []AggregatedSignature
func (*AggregatedSignatures) Build ¶
func (a *AggregatedSignatures) Build(signatures []flow.AggregatedSignature)
type Block ¶
type Block struct { Header *BlockHeader `json:"header"` Payload *BlockPayload `json:"payload,omitempty"` ExecutionResult *ExecutionResult `json:"execution_result,omitempty"` Expandable *BlockExpandable `json:"_expandable"` Links *Links `json:"_links,omitempty"` BlockStatus string `json:"block_status"` }
func (*Block) Build ¶
func (b *Block) Build( block *flow.Block, execResult *flow.ExecutionResult, link LinkGenerator, blockStatus flow.BlockStatus, expand map[string]bool, ) error
type BlockEvents ¶
type BlockEvents struct { BlockId string `json:"block_id,omitempty"` BlockHeight string `json:"block_height,omitempty"` BlockTimestamp time.Time `json:"block_timestamp,omitempty"` Events []Event `json:"events,omitempty"` Links *Links `json:"_links,omitempty"` }
func (*BlockEvents) Build ¶
func (b *BlockEvents) Build(blockEvents flow.BlockEvents)
type BlockExpandable ¶
type BlockHeader ¶
type BlockHeader struct { Id string `json:"id"` ParentId string `json:"parent_id"` Height string `json:"height"` Timestamp time.Time `json:"timestamp"` ParentVoterSignature string `json:"parent_voter_signature"` }
func (*BlockHeader) Build ¶
func (b *BlockHeader) Build(header *flow.Header)
type BlockHeight ¶
type BlockHeight struct { }
type BlockPayload ¶
type BlockPayload struct { CollectionGuarantees []CollectionGuarantee `json:"collection_guarantees"` BlockSeals []BlockSeal `json:"block_seals"` }
type BlockSeal ¶
type BlockSeal struct { BlockId string `json:"block_id"` ResultId string `json:"result_id"` FinalState string `json:"final_state"` AggregatedApprovalSignatures []AggregatedSignature `json:"aggregated_approval_signatures"` }
type BlockSeals ¶
type BlockSeals []BlockSeal
type BlocksEvents ¶
type BlocksEvents []BlockEvents
func (*BlocksEvents) Build ¶
func (b *BlocksEvents) Build(blocksEvents []flow.BlockEvents)
type Chunk ¶ added in v0.26.0
type Chunk struct { CollectionIndex string `json:"collection_index"` StartState string `json:"start_state"` EventCollection string `json:"event_collection"` BlockId string `json:"block_id"` TotalComputationUsed string `json:"total_computation_used"` NumberOfTransactions string `json:"number_of_transactions"` Index string `json:"index"` EndState string `json:"end_state"` }
type Collection ¶
type Collection struct { Id string `json:"id"` Transactions []Transaction `json:"transactions,omitempty"` Expandable *CollectionExpandable `json:"_expandable"` Links *Links `json:"_links,omitempty"` }
func (*Collection) Build ¶
func (c *Collection) Build( collection *flow.LightCollection, txs []*flow.TransactionBody, link LinkGenerator, expand map[string]bool) error
type CollectionExpandable ¶
type CollectionExpandable struct {
Transactions []string `json:"transactions,omitempty"`
}
type CollectionGuarantee ¶
type CollectionGuarantee struct { CollectionId string `json:"collection_id"` SignerIndices string `json:"signer_indices"` Signature string `json:"signature"` }
func (*CollectionGuarantee) Build ¶
func (c *CollectionGuarantee) Build(guarantee *flow.CollectionGuarantee)
type CollectionGuarantees ¶
type CollectionGuarantees []CollectionGuarantee
func (*CollectionGuarantees) Build ¶
func (c *CollectionGuarantees) Build(guarantees []*flow.CollectionGuarantee)
type CompatibleRange ¶
type CompatibleRange struct { StartHeight string `json:"start_height"` EndHeight string `json:"end_height"` }
A compatible version range.
type Error ¶ added in v0.32.0
type Error struct {
// contains filtered or unexported fields
}
Error is implementation of status error.
func NewBadRequestError ¶ added in v0.32.0
NewBadRequestError creates a new bad request rest error.
func NewNotFoundError ¶ added in v0.32.0
NewNotFoundError creates a new not found rest error.
func NewRestError ¶ added in v0.32.0
NewRestError creates an error returned to user with provided status user displayed message and internal error
func (*Error) UserMessage ¶ added in v0.32.0
type Event ¶
type ExecutionResult ¶
type ExecutionResult struct { Id string `json:"id"` BlockId string `json:"block_id"` Events []Event `json:"events"` Chunks []Chunk `json:"chunks,omitempty"` PreviousResultId string `json:"previous_result_id"` Links *Links `json:"_links,omitempty"` }
func (*ExecutionResult) Build ¶
func (e *ExecutionResult) Build( exeResult *flow.ExecutionResult, link LinkGenerator, ) error
type HashingAlgorithm ¶
type HashingAlgorithm string
const ( SHA2_256_HashingAlgorithm HashingAlgorithm = "SHA2_256" SHA2_384_HashingAlgorithm HashingAlgorithm = "SHA2_384" SHA3_256_HashingAlgorithm HashingAlgorithm = "SHA3_256" SHA3_384_HashingAlgorithm HashingAlgorithm = "SHA3_384" KMAC128_HashingAlgorithm HashingAlgorithm = "KMAC128" )
List of HashingAlgorithm
type InlineResponse200 ¶
type InlineResponse200 struct {
Value string `json:"value,omitempty"`
}
type LinkGenerator ¶
type LinkGenerator interface { BlockLink(id flow.Identifier) (string, error) TransactionLink(id flow.Identifier) (string, error) TransactionResultLink(id flow.Identifier) (string, error) PayloadLink(id flow.Identifier) (string, error) ExecutionResultLink(id flow.Identifier) (string, error) AccountLink(address string) (string, error) CollectionLink(id flow.Identifier) (string, error) }
LinkGenerator generates the expandable value for the known endpoints e.g. "/v1/blocks/c5e935bc75163db82e4a6cf9dc3b54656709d3e21c87385138300abd479c33b7"
type LinkGeneratorImpl ¶
type LinkGeneratorImpl struct {
// contains filtered or unexported fields
}
func NewLinkGeneratorImpl ¶
func NewLinkGeneratorImpl(router *mux.Router) *LinkGeneratorImpl
func (*LinkGeneratorImpl) AccountLink ¶
func (generator *LinkGeneratorImpl) AccountLink(address string) (string, error)
func (*LinkGeneratorImpl) BlockLink ¶
func (generator *LinkGeneratorImpl) BlockLink(id flow.Identifier) (string, error)
func (*LinkGeneratorImpl) CollectionLink ¶
func (generator *LinkGeneratorImpl) CollectionLink(id flow.Identifier) (string, error)
func (*LinkGeneratorImpl) ExecutionResultLink ¶
func (generator *LinkGeneratorImpl) ExecutionResultLink(id flow.Identifier) (string, error)
func (*LinkGeneratorImpl) PayloadLink ¶
func (generator *LinkGeneratorImpl) PayloadLink(id flow.Identifier) (string, error)
func (*LinkGeneratorImpl) TransactionLink ¶
func (generator *LinkGeneratorImpl) TransactionLink(id flow.Identifier) (string, error)
func (*LinkGeneratorImpl) TransactionResultLink ¶
func (generator *LinkGeneratorImpl) TransactionResultLink(id flow.Identifier) (string, error)
type Links ¶
type Links struct {
Self string `json:"_self,omitempty"`
}
type ModelError ¶
type NetworkParameters ¶ added in v0.28.0
type NetworkParameters struct {
ChainId string `json:"chain_id"`
}
func (*NetworkParameters) Build ¶ added in v0.28.0
func (t *NetworkParameters) Build(params *access.NetworkParameters)
type NodeVersionInfo ¶ added in v0.31.0
type NodeVersionInfo struct { Semver string `json:"semver"` Commit string `json:"commit"` SporkId string `json:"spork_id"` ProtocolVersion string `json:"protocol_version"` SporkRootBlockHeight string `json:"spork_root_block_height"` NodeRootBlockHeight string `json:"node_root_block_height"` CompatibleRange *CompatibleRange `json:"compatible_range,omitempty"` }
func (*NodeVersionInfo) Build ¶ added in v0.31.0
func (t *NodeVersionInfo) Build(params *access.NodeVersionInfo)
type OneOfBlockHeight ¶
type OneOfBlockHeight struct { }
type ProposalKey ¶
type ProposalKey struct { Address string `json:"address"` KeyIndex string `json:"key_index"` SequenceNumber string `json:"sequence_number"` }
func (*ProposalKey) Build ¶
func (p *ProposalKey) Build(key flow.ProposalKey)
type ScriptsBody ¶
type ScriptsBody struct { // Base64 encoded content of the Cadence script. Script string `json:"script,omitempty"` // An array containing arguments each encoded as Base64 passed in the [JSON-Cadence interchange format](https://docs.onflow.org/cadence/json-cadence-spec/). Arguments []string `json:"arguments,omitempty"` }
type SigningAlgorithm ¶
type SigningAlgorithm string
const ( BLSBLS12381_SigningAlgorithm SigningAlgorithm = "BLSBLS12381" ECDSAP256_SigningAlgorithm SigningAlgorithm = "ECDSAP256" ECDSA_SECP256K1_SigningAlgorithm SigningAlgorithm = "ECDSASecp256k1" )
List of SigningAlgorithm
type StatusError ¶ added in v0.32.0
type StatusError interface { error // this is the actual error that occured Status() int // the HTTP status code to return UserMessage() string // the error message to return to the client }
StatusError provides custom error with http status.
type Transaction ¶
type Transaction struct { Id string `json:"id"` // Base64 encoded Cadence script. Script string `json:"script"` // Array of Base64 encoded arguments with in [JSON-Cadence interchange format](https://docs.onflow.org/cadence/json-cadence-spec/). Arguments []string `json:"arguments"` ReferenceBlockId string `json:"reference_block_id"` // The limit on the amount of computation a transaction is allowed to preform. GasLimit string `json:"gas_limit"` Payer string `json:"payer"` ProposalKey *ProposalKey `json:"proposal_key"` Authorizers []string `json:"authorizers"` PayloadSignatures []TransactionSignature `json:"payload_signatures"` EnvelopeSignatures []TransactionSignature `json:"envelope_signatures"` Result *TransactionResult `json:"result,omitempty"` Expandable *TransactionExpandable `json:"_expandable"` Links *Links `json:"_links,omitempty"` }
func (*Transaction) Build ¶
func (t *Transaction) Build(tx *flow.TransactionBody, txr *access.TransactionResult, link LinkGenerator)
type TransactionExecution ¶ added in v0.26.0
type TransactionExecution string
TransactionExecution : This value indicates whether the transaction execution succeded or not, this value should be checked when determining transaction success.
const ( PENDING_TransactionExecution TransactionExecution = "Pending" SUCCESS_TransactionExecution TransactionExecution = "Success" FAILURE_TransactionExecution TransactionExecution = "Failure" )
List of TransactionExecution
func (*TransactionExecution) Build ¶ added in v0.26.0
func (t *TransactionExecution) Build(result *access.TransactionResult)
type TransactionExpandable ¶
type TransactionExpandable struct {
Result string `json:"result,omitempty"`
}
type TransactionResult ¶
type TransactionResult struct { BlockId string `json:"block_id"` CollectionId string `json:"collection_id"` Execution *TransactionExecution `json:"execution,omitempty"` Status *TransactionStatus `json:"status"` StatusCode int32 `json:"status_code"` // Provided transaction error in case the transaction wasn't successful. ErrorMessage string `json:"error_message"` ComputationUsed string `json:"computation_used"` Events []Event `json:"events"` Links *Links `json:"_links,omitempty"` }
func (*TransactionResult) Build ¶
func (t *TransactionResult) Build(txr *access.TransactionResult, txID flow.Identifier, link LinkGenerator)
type TransactionResultExpandable ¶
type TransactionResultExpandable struct {
Events string `json:"events,omitempty"`
}
type TransactionSignature ¶
type TransactionSignature struct { Address string `json:"address"` KeyIndex string `json:"key_index"` Signature string `json:"signature"` }
func (*TransactionSignature) Build ¶
func (t *TransactionSignature) Build(sig flow.TransactionSignature)
type TransactionSignatures ¶
type TransactionSignatures []TransactionSignature
func (*TransactionSignatures) Build ¶
func (t *TransactionSignatures) Build(signatures []flow.TransactionSignature)
type TransactionStatus ¶
type TransactionStatus string
TransactionStatus : This value indicates the state of the transaction execution. Only sealed and expired are final and immutable states.
const ( PENDING_TransactionStatus TransactionStatus = "Pending" FINALIZED_TransactionStatus TransactionStatus = "Finalized" EXECUTED_TransactionStatus TransactionStatus = "Executed" SEALED_TransactionStatus TransactionStatus = "Sealed" EXPIRED_TransactionStatus TransactionStatus = "Expired" )
List of TransactionStatus
func (*TransactionStatus) Build ¶
func (t *TransactionStatus) Build(status flow.TransactionStatus)
type Transactions ¶
type Transactions []Transaction
func (*Transactions) Build ¶
func (t *Transactions) Build(transactions []*flow.TransactionBody, link LinkGenerator)
type TransactionsBody ¶
type TransactionsBody struct { // Base64 encoded content of the Cadence script. Script string `json:"script"` // An array containing arguments each encoded as Base64 passed in the [JSON-Cadence interchange format](https://docs.onflow.org/cadence/json-cadence-spec/). Arguments []string `json:"arguments"` ReferenceBlockId string `json:"reference_block_id"` // The limit on the amount of computation a transaction is allowed to preform. GasLimit string `json:"gas_limit"` Payer string `json:"payer"` ProposalKey *ProposalKey `json:"proposal_key"` Authorizers []string `json:"authorizers"` PayloadSignatures []TransactionSignature `json:"payload_signatures"` EnvelopeSignatures []TransactionSignature `json:"envelope_signatures"` }
Source Files ¶
- account.go
- block.go
- collection.go
- enums.go
- error.go
- event.go
- execution_result.go
- link.go
- model_account.go
- model_account__expandable.go
- model_account_balance.go
- model_account_public_key.go
- model_account_public_keys.go
- model_aggregated_signature.go
- model_block.go
- model_block__expandable.go
- model_block_events.go
- model_block_header.go
- model_block_height.go
- model_block_payload.go
- model_block_seal.go
- model_chunk.go
- model_collection.go
- model_collection__expandable.go
- model_collection_guarantee.go
- model_compatible_range.go
- model_error.go
- model_event.go
- model_execution_result.go
- model_hashing_algorithm.go
- model_inline_response_200.go
- model_links.go
- model_network_parameters.go
- model_node_version_info.go
- model_one_of_block_height.go
- model_proposal_key.go
- model_scripts_body.go
- model_signing_algorithm.go
- model_transaction.go
- model_transaction__expandable.go
- model_transaction_execution.go
- model_transaction_result.go
- model_transaction_result__expandable.go
- model_transaction_signature.go
- model_transaction_status.go
- model_transactions_body.go
- network.go
- node_version_info.go
- transaction.go