Documentation ¶
Index ¶
- type CallOption
- type CallOptions
- type ERC1155
- func (erc1155 ERC1155) BalanceOf(ctx context.Context, account data.Felt, tokenId data.Uint256, ...) (decimal.Decimal, error)
- func (erc1155 ERC1155) BalanceOfBatch(ctx context.Context, accounts []data.Felt, tokenIds []data.Uint256, ...) ([]decimal.Decimal, error)
- func (erc1155 ERC1155) IsApprovedForAll(ctx context.Context, account, operator data.Felt, opts ...CallOption) (data.Felt, error)
- func (erc1155 ERC1155) Uri(ctx context.Context, tokenId data.Uint256, opts ...CallOption) (string, error)
- type ERC20
- func (erc20 ERC20) BalanceOf(ctx context.Context, account data.Felt, opts ...CallOption) (decimal.Decimal, error)
- func (erc20 ERC20) Decimals(ctx context.Context, opts ...CallOption) (uint64, error)
- func (erc20 ERC20) Name(ctx context.Context, opts ...CallOption) (string, error)
- func (erc20 ERC20) Symbol(ctx context.Context, opts ...CallOption) (string, error)
- func (erc20 ERC20) TotalSupply(ctx context.Context, opts ...CallOption) (decimal.Decimal, error)
- type ERC721
- func (erc721 ERC721) BalanceOf(ctx context.Context, account data.Felt, opts ...CallOption) (decimal.Decimal, error)
- func (erc721 ERC721) GetApproved(ctx context.Context, tokenId data.Uint256, opts ...CallOption) (data.Felt, error)
- func (erc721 ERC721) IsApprovedForAll(ctx context.Context, owner, operator data.Felt, opts ...CallOption) (data.Felt, error)
- func (erc721 ERC721) OwnerOf(ctx context.Context, tokenId data.Uint256, opts ...CallOption) (data.Felt, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CallOptions ¶
type CallOptions struct {
// contains filtered or unexported fields
}
CallOptions -
type ERC1155 ¶
type ERC1155 struct {
// contains filtered or unexported fields
}
ERC1155 -
func (ERC1155) BalanceOf ¶
func (erc1155 ERC1155) BalanceOf(ctx context.Context, account data.Felt, tokenId data.Uint256, opts ...CallOption) (decimal.Decimal, error)
BalanceOf - Returns the number of tokens in owner's account.
func (ERC1155) BalanceOfBatch ¶
func (erc1155 ERC1155) BalanceOfBatch(ctx context.Context, accounts []data.Felt, tokenIds []data.Uint256, opts ...CallOption) ([]decimal.Decimal, error)
BalanceOfBatch - Get the balance of multiple account/token pairs.
type ERC20 ¶
type ERC20 struct {
// contains filtered or unexported fields
}
ERC20 -
func (ERC20) BalanceOf ¶
func (erc20 ERC20) BalanceOf(ctx context.Context, account data.Felt, opts ...CallOption) (decimal.Decimal, error)
BalanceOf - Returns the number of tokens in owner's account.
func (ERC20) Decimals ¶
Decimals - Returns the number of decimals the token uses - e.g. 8 means to divide the token amount by 100000000 to get its user representation.
func (ERC20) TotalSupply ¶
TotalSupply - Returns the amount of tokens in existence.
type ERC721 ¶
type ERC721 struct {
// contains filtered or unexported fields
}
ERC721 -
func (ERC721) BalanceOf ¶
func (erc721 ERC721) BalanceOf(ctx context.Context, account data.Felt, opts ...CallOption) (decimal.Decimal, error)
BalanceOf - Returns the number of tokens in owner's account.
func (ERC721) GetApproved ¶
func (erc721 ERC721) GetApproved(ctx context.Context, tokenId data.Uint256, opts ...CallOption) (data.Felt, error)
GetApproved - Returns the account approved for tokenId token.
Click to show internal directories.
Click to hide internal directories.