StargatePoolNative

Linea
EtherscanBlockscout
Code Snippets

addTreasuryFee

payable

The native currency value (in Ether) to send with this transaction (ex: 0.01 to send 0.01 native currency).

Use this function in your app

const response = await fetch('https://api.thirdweb.com/v1/contracts/write', { method: 'POST', headers: { 'Content-Type': 'application/json', 'x-secret-key': '<YOUR_SECRET_KEY>' }, body: JSON.stringify({ calls: [ { contractAddress: "0x81F6138153d473E8c5EcebD3DC8Cd4903506B075", method: "function addTreasuryFee(uint256 _amountLD) payable", params: [_amountLD] } ], chainId: 59144, from: "<YOUR_WALLET_ADDRESS>" }) }); const data = await response.json();