Skip to content

🪓 A sample code to demonstrate how to wrap transaction messages in Go

License

Notifications You must be signed in to change notification settings

crescent-network/crescent-tx-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Crescent Transaction Example

This repository is a sample project to demonstrate how to wrap message(s) in a single transaction and signs the transaction to broadcast it the transaction to the network.

In main.go, you will find that it demonstrates how to send MsgMMOrder for market makers. There are also other sample functions available. Feel free to add/update/delete them depending on your usage.

Dependency

Dependency Version
Go 1.18
Crescent Core 3.0.x

Configuration

A configuration file called config.toml is required to run the program. Make sure to copy example.toml to create config.toml file and change values for you need. The config source code can be found in this config file.

Usage

# See the code in main.go file to understand how this program is developed
go run main.go

Resources

About

🪓 A sample code to demonstrate how to wrap transaction messages in Go

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages