package
0.4.4
Repository: https://github.com/portto/blocto-flow-go-sdk.git
Documentation: pkg.go.dev

# README

Emulator Examples

This package contains code samples that interact with the Flow Emulator.

Running the emulator with the Flow CLI

The emulator is bundled with the Flow CLI, a command-line interface for working with Flow.

Installation

Follow these steps to install the Flow CLI.

Starting the server

Start the emulator by running the following command in this directory:

flow emulator start -v

The -v flag enables verbose log output, which is useful for testing

Running the examples

In a separate process, run any of the example programs below. Watch the emulator logs to see transaction output.

Create Account

Create a new account on Flow.

go run ./create_account/main.go

Add Account Key

Add a key to an existing account.

go run ./add_account_key/main.go

Deploy Contract

Deploy a Cadence smart contract.

go run ./deploy_contract/main.go

Query Events

Query events emitted by transactions.

go run ./query_events/main.go

Transaction Arguments

Submit a transaction with Cadence arguments:

go run ./transaction_arguments/main.go

Transaction Signing

Single Party, Single Signature

Sign a transaction with a single account.

go run ./transaction_signing/single_party/main.go

Single Party, Multiple Signatures

Sign a transaction with a single account using multiple signatures.

go run ./transaction_signing/single_party_multisig/main.go

Multiple Parties

Sign a transaction with multiple accounts.

go run ./transaction_signing/multi_party/main.go

Multiple Parties, Multiple Signatures

Sign a transaction with multiple accounts using multiple signatures.

go run ./transaction_signing/multi_party_multisig/main.go

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Functions

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
RandomPrivateKey returns a randomly generated ECDSA P-256 private key.
ReadFile reads a file from the file system.
No description provided by the author
No description provided by the author