erc721

package
v0.0.0-4080901 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2024 License: LGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const ERC721_ABI = `` /* 6143-byte string literal not displayed */

Variables

This section is empty.

Functions

This section is empty.

Types

type ERC721

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

func NewERC721

func NewERC721(w3 *web3.Web3, contractAddress common.Address) (*ERC721, error)

func (*ERC721) Address

func (e *ERC721) Address() common.Address

func (*ERC721) BalanceOf

func (e *ERC721) BalanceOf(owner common.Address) (*big.Int, error)

func (*ERC721) EstimateGasLimit

func (e *ERC721) EstimateGasLimit(to common.Address, data []byte, gasPrice, wei *big.Int) (uint64, error)

func (*ERC721) IsApprovalForAll

func (e *ERC721) IsApprovalForAll(owner, spender common.Address) (bool, error)

func (*ERC721) IsApprovedForAll

func (e *ERC721) IsApprovedForAll(owner, operator common.Address) (bool, error)

func (*ERC721) OwnerOf

func (e *ERC721) OwnerOf(tokenId *big.Int) (common.Address, error)

func (*ERC721) SetApprovalForAll

func (e *ERC721) SetApprovalForAll(
	spender common.Address,
	approve bool,
	gasPrice *big.Int,
	gasTipCap *big.Int,
	gasFeeCap *big.Int,
) (common.Hash, error)

func (*ERC721) SetConfirmation

func (e *ERC721) SetConfirmation(blockCount int)

func (*ERC721) SetTxPollTimeout

func (e *ERC721) SetTxPollTimeout(txPollTimeout int)

func (*ERC721) SyncSendEIP1559Tx

func (e *ERC721) SyncSendEIP1559Tx(
	gasTipCap *big.Int,
	gasFeeCap *big.Int,
	gasLimit uint64,
	to common.Address,
	data []byte,
	wei *big.Int,
) (*eTypes.Receipt, error)

func (*ERC721) SyncSendRawTransactionForTx

func (e *ERC721) SyncSendRawTransactionForTx(
	gasPrice *big.Int, gasLimit uint64, to common.Address, data []byte, wei *big.Int,
) (*eTypes.Receipt, error)

func (*ERC721) TotalSupply

func (e *ERC721) TotalSupply() (*big.Int, error)

func (*ERC721) TransferFrom

func (e *ERC721) TransferFrom(
	from common.Address,
	to common.Address,
	tokenId *big.Int,
	gasPrice *big.Int,
	gasTipCap *big.Int,
	gasFeeCap *big.Int,
) (common.Hash, error)

func (*ERC721) WaitBlock

func (e *ERC721) WaitBlock(blockCount uint64) error

Jump to

Keyboard shortcuts

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