class ERC20
class ERC20
: public Thirdweb.Routable
Interact with any ERC20 compatible contract.
Summary
Members | Type | Descriptions |
---|---|---|
signature | variable | Handle signature minting functionality |
claimConditions | variable | Query claim conditions |
ERC20 | function | Interact with any ERC20 compatible contract. |
Get | function | Get the currency information |
Balance | function | Get the balance of the connected wallet |
BalanceOf | function | Get the balance of the specified wallet |
Allowance | function | Get how much allowance the given address is allowed to spend on behalf of the connected wallet |
AllowanceOf | function | Get how much allowance the given address is allowed to spend on behalf of the specified wallet |
TotalSupply | function | Get the total supply in circulation |
SetAllowance | function | Set how much allowance the given address is allowed to spend on behalf of the connected wallet |
Transfer | function | Transfer a given amount of currency to another wallet |
Burn | function | Burn a given amount of currency |
Claim | function | Claim a given amount of currency for compatible drop contracts |
ClaimTo | function | Claim a given amount of currency to a given destination wallet for compatible drop contracts |
Mint | function | Mint a given amount of currency |
MintTo | function | Mint 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