Format 1: 1000000000000000000
1000000000000000000
Format 2: x.y ALPH, where `1 ALPH = 1000000000000000000
x.y ALPH
Field fromPublicKeyType can be default or bip340-schnorr
default
bip340-schnorr
Ok
const response = await fetch('https://alephium.nownodes.io/transactions/build-multi-addresses', { method: 'POST', headers: { "Content-Type": "application/json" }, body: JSON.stringify({ "from": [ { "fromPublicKey": "d1b70d2226308b46da297486adb6b4f1a8c1842cb159ac5ec04f384fe2d6f5da28", "destinations": [ { "address": "1AujpupFP4KWeZvqA7itsHY9cLJmx4qTzojVZrg8W9y", "attoAlphAmount": "2000000000000000000" } ] } ] }), }); const data = await response.json();
{ "unsignedTx": "text", "gasAmount": 0, "gasPrice": "text", "txId": "text", "fromGroup": 0, "toGroup": 0 }