Skip to main content

class ERC20

class ERC20
: public Thirdweb.Routable

Interact with any ERC20 compatible contract.

Summary

MembersTypeDescriptions
signaturevariableHandle signature minting functionality
claimConditionsvariableQuery claim conditions
ERC20functionInteract with any ERC20 compatible contract.
GetfunctionGet the currency information
BalancefunctionGet the balance of the connected wallet
BalanceOffunctionGet the balance of the specified wallet
AllowancefunctionGet how much allowance the given address is allowed to spend on behalf of the connected wallet
AllowanceOffunctionGet how much allowance the given address is allowed to spend on behalf of the specified wallet
TotalSupplyfunctionGet the total supply in circulation
SetAllowancefunctionSet how much allowance the given address is allowed to spend on behalf of the connected wallet
TransferfunctionTransfer a given amount of currency to another wallet
BurnfunctionBurn a given amount of currency
ClaimfunctionClaim a given amount of currency for compatible drop contracts
ClaimTofunctionClaim a given amount of currency to a given destination wallet for compatible drop contracts
MintfunctionMint a given amount of currency
MintTofunctionMint a given amount of currency to a given destination wallet

Members

public ERC20Signature signature

Handle signature minting functionality


public ERC20ClaimConditions claimConditions

Query claim conditions


public inline ERC20(string parentRoute)

Interact with any ERC20 compatible contract.


public inline async Task< Currency>Get()

Get the currency information


public inline async Task< CurrencyValue>Balance()

Get the balance of the connected wallet


public inline async Task< CurrencyValue>BalanceOf(string address)

Get the balance of the specified wallet


public inline async Task< CurrencyValue>Allowance(string spender)

Get how much allowance the given address is allowed to spend on behalf of the connected wallet


public inline async Task< CurrencyValue>AllowanceOf(string owner,string spender)

Get how much allowance the given address is allowed to spend on behalf of the specified wallet


public inline async Task< CurrencyValue>TotalSupply()

Get the total supply in circulation


public inline async Task< TransactionResult>SetAllowance(string spender,string amount)

Set how much allowance the given address is allowed to spend on behalf of the connected wallet


public inline async Task< TransactionResult>Transfer(string to,string amount)

Transfer a given amount of currency to another wallet


public inline async Task< TransactionResult>Burn(string amount)

Burn a given amount of currency


public inline async Task< TransactionResult>Claim(string amount)

Claim a given amount of currency for compatible drop contracts


public inline async Task< TransactionResult>ClaimTo(string address,int amount)

Claim a given amount of currency to a given destination wallet for compatible drop contracts


public inline async Task< TransactionResult>Mint(string amount)

Mint a given amount of currency


public inline async Task< TransactionResult>MintTo(string address,string amount)

Mint a given amount of currency to a given destination wallet