Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrWrongResult = fmt.Errorf("wrong result")
Functions ¶
This section is empty.
Types ¶
type Etherscan ¶
type Etherscan struct {
// contains filtered or unexported fields
}
func NewEtherscan ¶
func (*Etherscan) GetTransactionReceipt ¶
func (esc *Etherscan) GetTransactionReceipt(ctx context.Context, txHash string) (TransactionReceipt, error)
GetTransactionReceipt returns transaction receipt of given transaction hash https://api.etherscan.io/api?module=proxy&action=eth_getTransactionReceipt&txhash=0x0566aeb88af83608b6918a328ddb36a0b0207ad9b72d89f453df3d780ae7a231&apikey=T67NS47W56F7MKDR38UHAZTIJ5ZHEZ7FYE
type Response ¶
type Response struct { Message string Status string Result TransactionReceipt }
type Swapped ¶
type Swapped struct { ID graphql.String Source graphql.String TransactionHash graphql.String UserAddr graphql.String MakerAssetAddr graphql.String TakerAssetAddr graphql.String TakerAssetAmount graphql.BigInt MakerAssetAmount graphql.BigInt ReceivedAmount graphql.BigInt SettleAmount graphql.BigInt // GasUsed graphql.BigInt GasPrice graphql.BigInt BlockNumber graphql.BigInt FeeFactor graphql.Int }
Swapped represents graphql model of swapped
type TokenlonClient ¶
type TokenlonClient struct {
// contains filtered or unexported fields
}
func NewTokenlonClient ¶
func NewTokenlonClient(token string) (tl TokenlonClient)
NewTokenlonClient returns TokenlonClient
type TransactionReceipt ¶
type TransactionReceipt struct {
GasUsed string
}
Click to show internal directories.
Click to hide internal directories.