erc20
Type Aliases
ApprovePrepareTransactionRequestProps<TChain>
type ApprovePrepareTransactionRequestProps<TChain>: object;
Type parameters
Type parameter |
---|
TChain extends Chain | undefined |
Type declaration
Member | Type |
---|---|
address | Address |
amount | bigint |
owner | Address |
publicClient | PublicClient <Transport , TChain > |
spender | Address |
Source
ApproveProps<TChain>
type ApproveProps<TChain>: object;
Type parameters
Type parameter |
---|
TChain extends Chain | undefined |
Type declaration
Member | Type |
---|---|
address | Address |
amount | bigint |
publicClient | PublicClient <Transport , TChain > |
spender | Address |
walletClient | WalletClient |
Source
FetchAllowanceProps<TChain>
type FetchAllowanceProps<TChain>: object;
Type parameters
Type parameter |
---|
TChain extends Chain | undefined |
Type declaration
Member | Type |
---|---|
address | Address |
owner | Address |
publicClient | PublicClient <Transport , TChain > |
spender | Address |
Source
Functions
approve()
function approve<TChain>(__namedParameters: ApproveProps<TChain>): Promise<any>
Type parameters
Type parameter |
---|
TChain extends undefined | Chain <undefined | ChainFormatters > |
Parameters
Parameter | Type |
---|---|
__namedParameters | ApproveProps <TChain > |
Returns
Promise
<any
>
Source
approvePrepareTransactionRequest()
function approvePrepareTransactionRequest<TChain>(__namedParameters: ApprovePrepareTransactionRequestProps<TChain>): Promise<any>
Type parameters
Type parameter |
---|
TChain extends undefined | Chain <undefined | ChainFormatters > |
Parameters
Parameter | Type |
---|---|
__namedParameters | ApprovePrepareTransactionRequestProps <TChain > |
Returns
Promise
<any
>
Source
fetchAllowance()
function fetchAllowance<TChain>(__namedParameters: FetchAllowanceProps<TChain>): Promise<any>
Type parameters
Type parameter |
---|
TChain extends undefined | Chain <undefined | ChainFormatters > |
Parameters
Parameter | Type |
---|---|
__namedParameters | FetchAllowanceProps <TChain > |
Returns
Promise
<any
>
Source
fetchDecimals()
function fetchDecimals<TChain>(__namedParameters: object): any
Type parameters
Type parameter |
---|
TChain extends undefined | Chain <undefined | ChainFormatters > |
Parameters
Parameter | Type |
---|---|
__namedParameters | object |
__namedParameters.address | `0x${string}` |
__namedParameters.publicClient | object |
Returns
any