transaction

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2022 License: MIT Imports: 5 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadPrivateKeyFromEnv

func LoadPrivateKeyFromEnv() (solana.PrivateKey, error)

LoadPrivateKeyFromEnv looks up private key from the `PRIVATE_KEY` environment variable

func SignTx

func SignTx(unsignedTxBase64 string) (string, error)

SignTx uses the environment variable for `PRIVATE_KEY` to sign the message content and replace the zero signature

func SignTxWithPrivateKey

func SignTxWithPrivateKey(unsignedTxBase64 string, privateKey solana.PrivateKey) (string, error)

SignTxWithPrivateKey uses the provided private key to sign the message content and replace the zero signature

Types

This section is empty.

Jump to

Keyboard shortcuts

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