cosmos_transfer

package
v0.0.0-...-836e728 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 6, 2022 License: MIT Imports: 20 Imported by: 0

Documentation

Overview

Package cosmos_transfer provides function to transfer tokens

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Transfer

func Transfer(p *TransacParams) (string, error)

Transfer signs transfer request and returns tx hash or error if any

Types

type TransacParams

type TransacParams struct {
	FromAddr sdk.AccAddress
	ToAddr   sdk.AccAddress
	PrivKey  *secp256k1.PrivKey
	Denom    string
	Amount   int64
}

TransacParams defines transfer request containing from address, to address, private key denom and amount

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL