faucet

package
v0.0.0-...-f222379 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	BNB  = Currency{"BNB", ""}
	BTC  = Currency{"BTC", "0x6ce8da28e2f864420840cf74474eff5fd80e65b8"}
	BUSD = Currency{"BUSD", "0xed24fc36d5ee211ea25a80239fb8c4cfd80f12ee"}
	DAI  = Currency{"DAI", "0xec5dcb5dbf4b114c9d0f65bccab49ec54f6a0867"}
	ETH  = Currency{"ETH", "0xd66c6b4f0be8ce5b39d52e0fd1344c389929b378"}
	USDC = Currency{"USDC", "0x64544969ed7ebf5f083679233325356ebe738930"}
	USDT = Currency{"USDT", "0x337610d27c682e347c9cd60bd4b3b107c9d34ddd"}
	XRP  = Currency{"XRP", "0xa83575490d7df4e2f47b7d38ef351a2722ca45b9"}
)

Functions

func NewTransaction

func NewTransaction(
	ctx context.Context,
	captcha string,
	account string,
	proxy string,
	symbol string,
) (string, error)

Types

type Currency

type Currency struct {
	// contains filtered or unexported fields
}

func NewCurrency

func NewCurrency(symbol string) (Currency, error)

func (Currency) Address

func (c Currency) Address() string

func (Currency) Symbol

func (c Currency) Symbol() string

type Message

type Message struct {
	Error    *string `json:"error"`
	Requests []struct {
		Account string `json:"account"`
		Tx      struct {
			Hash string `json:"hash"`
		} `json:"tx"`
	} `json:"requests"`
}

Jump to

Keyboard shortcuts

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