token

package
v0.7.6 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Token

type Token struct {
	// id of the token || erc721: topic[3] | erc1155: tx.To()
	ID *big.Int `json:"id"`

	// address of the token contract || erc721: tx.To() | erc1155: topic[1]
	Address common.Address `json:"address"`

	// optional name of the token (opensea api source)
	Name string `json:"name,omitempty"`
}

func (*Token) NftID

func (t *Token) NftID() string

func (*Token) ShortID

func (t *Token) ShortID() string

func (*Token) String

func (t *Token) String() string

Jump to

Keyboard shortcuts

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