pub struct FlowConnection<T> {
    pub client: AccessApiClient<T>,
}
Expand description

The FlowConnection object contains a single API connection. The network transport layer can be optionally substitued by implementing a new FlowConnection

Fields

client: AccessApiClient<T>

Implementations

The default implementation of a FlowConnection, using tonic::transport::Channel

Initializes a new connection and checks the availability of the node at the provided address

get_account will return the flow::AccountResponse of account_address, else an error if it could not be accessed.

execute_script will attempt to run the provided script (as bytes) and return the flow::ExecuteScriptResponse or Error

Sends the transaction to the blockchain. Make sure you signed the transactionsign_transaction first.

get transaction result

get_block accepts either the block_id or block_height. If neither are defined it returns the latest block.

retrieve the specified events by type for the given height range

retrieve the specified events by type for the given blocks

retrieve the specified collections

Create an account with the given account_keys and payer

add a key

remove a key

add a contract

update a contract

remove a contract

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Wrap the input message T in a tonic::Request

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more