package
module
Version:
v0.2.8
Opens a new window with list of versions in this module.
Published: Dec 24, 2024
License: BSD-3-Clause
Opens a new window with license information.
Imports: 12
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
go-coin-sol
go-coin-sol
Quick start
go get github.com/pefish/go-coin-sol
Document
doc
Security Vulnerabilities
If you discover a security vulnerability, please send an e-mail to pefish@qq.com. All security vulnerabilities will be promptly addressed.
License
This project is licensed under the Apache License.
Documentation
¶
-
type Wallet
-
func (t *Wallet) BuildTx(privObj solana.PrivateKey, latestBlockhash *solana.Hash, ...) (*solana.Transaction, error)
-
func (t *Wallet) NewAddress() (address_ string, priv_ string)
-
func (t *Wallet) RPCClient() *rpc.Client
-
func (t *Wallet) SendAndConfirmTransaction(ctx context.Context, tx *solana.Transaction, skipPreflight bool, urls []string) (meta_ *rpc.TransactionMeta, timestamp_ uint64, err_ error)
-
func (t *Wallet) SendTx(ctx context.Context, privObj solana.PrivateKey, latestBlockhash *solana.Hash, ...) (meta_ *rpc.TransactionMeta, tx_ *solana.Transaction, timestamp_ uint64, ...)
-
func (t *Wallet) WSClient() *ws.Client
func (t *Wallet) BuildTx(
privObj solana.PrivateKey,
latestBlockhash *solana.Hash,
instructions []solana.Instruction,
unitPrice uint64,
unitLimit uint64,
) (*solana.Transaction, error)
func (t *Wallet) SendTx(
ctx context.Context,
privObj solana.PrivateKey,
latestBlockhash *solana.Hash,
instructions []solana.Instruction,
unitPrice uint64,
unitLimit uint64,
skipPreflight bool,
urls []string,
) (
meta_ *rpc.TransactionMeta,
tx_ *solana.Transaction,
timestamp_ uint64,
err_ error,
)
Source Files
¶
Directories
¶
|
|
program
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Click to show internal directories.
Click to hide internal directories.