@bcpros/crypto-wallet-core
Version:
A multi-currency support library for address derivation, private key creation, and transaction creation
30 lines • 853 B
TypeScript
import { ETHTxProvider } from '../eth';
import { Contract } from 'web3-eth-contract';
export declare class ERC20TxProvider extends ETHTxProvider {
getERC20Contract(tokenContractAddress: string): Contract;
create(params: {
recipients: Array<{
address: string;
amount: string;
}>;
nonce: number;
gasPrice?: number;
data: string;
gasLimit: number;
tokenAddress: string;
network: string;
chainId?: number;
contractAddress?: string;
maxGasFee?: number;
priorityGasFee?: number;
}): string;
encodeData(params: {
recipients: Array<{
address: string;
amount: string;
}>;
tokenAddress: string;
contractAddress?: string;
}): any;
}
//# sourceMappingURL=index.d.ts.map