Skip to content

TransactionReceipt

example.ts
import { mintclub } from 'mint.club-v2-sdk';
 
await mintclub
  .network('ethereum')
  .token('MINT')
  .create({
    name: 'Mint Club',
    reserveToken: {
      address: '0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2', // mainnet WETH token address 
      decimals: 18, 
    }, 
	curveData: {
		curveType: 'LINEAR', 
		stepCount: 10,
		maxSupply: 10_000,
		initialMintingPrice: 0.01, // 0.01 WETH 
		finalMintingPrice: 0.1, // 0.1 WETH
		creatorAllocation: 100,
	},
 
	onSuccess: (receipt) => {
		const 
const a: { blobGasPrice?: bigint | undefined; blobGasUsed?: bigint | undefined; blockHash: `0x${string}`; blockNumber: bigint; contractAddress: `0x${string}` | null; cumulativeGasUsed: bigint; effectiveGasPrice: bigint; ... 9 more ...; type: TransactionType; }
a
= { ...receipt };
} })

Viem Documentation

Transaction Receipt