Expand description
Flow-Rust-SDK API Reference
See the Wiki for usage instructions.
Re-exports§
Modules§
- flow
flow
is an exported module from the flow_rust_sdk. It’s types are generated directly from the gRPC API Protobufs https://github.com/onflow/flow/tree/master/protobuf
Macros§
- json
- Construct a
serde_json::Value
from a JSON literal.
Structs§
- Argument
- This is our argument builder.
- Flow
Connection - The FlowConnection object contains a single API connection.
The network transport layer can be optionally substitued by implementing a new FlowConnection
- OsRng
- A random number generator that retrieves randomness from the operating system.
- Sign
- Construct a signature object. Pass this into the payload or envelope signatures when signing a transaction.
Enums§
- Value
- Represents any valid JSON value.
Functions§
- build_
transaction - build_transaction will construct a
flow::Transaction
with the provided script and arguments. See theArgument
struct for details on how to construct arguments. - from_
slice - Deserialize an instance of type
T
from bytes of JSON text. - process_
keys_ args - Process key arguments. Intended for use with
create_account
- sign_
transaction - Sign the provided transaction.
You will first need to
build_transaction
. - to_vec
- Serialize the given data structure as a JSON byte vector.
Type Aliases§
- Signing
Key - ECDSA/P-256 signing key