Select UTXOs
How to provide UTXOs when building transactions with the Anvil API.
Test vs Production
// Test environment: No UTXOs needed
const response = await fetch('https://preprod.api.ada-anvil.app/v2/services/transactions/build', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'X-Api-Key': 'YOUR_API_KEY'
},
body: JSON.stringify({
changeAddress: 'addr_test...',
outputs: [{ address: 'addr_test...', lovelace: 5_000_000 }]
})
});Fetching UTXOs
Scenario
Approach
Why
Frontend: Weld
Backend: Anvil API
Last updated
Was this helpful?

