/api/v2/{coin}/wallet/{walletId}/sendmany
Send coins or tokens to one or more recipients. You can use this endpoint to schedule outgoing transactions in bulk, lowering your aggregate amount of blockchain fees.
Works with both multisignature and MPC wallets. Also supports external-signer mode.
Works with most BitGo-supported assets, but currently unavailable for: ALGO, ARBETH, AVAXC, CELO, CELO:CUSD, CSPR, DOT, EOS, HTETH:BGERCH, NEAR, OPETH, STX, TON, TRX, TRX:USDC, XLM, XRP, XTZ
coin
stringRequiredbtc
walletId
stringRequired59cd72485007a239fb00282ed480da1f
^[0-9a-f]{32}$
recipients
array[object] address
string <= 250 characters
2MvrwRYBAuRtPTiZ5MyKg42Ke55W3fZJfZS
amount
One of2000000
^-?\d+$
tokenName
string sol:natix
tokenData
object otp
string walletPassphrase
string prv
string type
string numBlocks
integer >= 2
<= 1000
feeRate
One ofnull
maxFeeRate
One ofnull
^-?\d+$
feeMultiplier
One ofnull
^-?[\d\.]+$
minConfirms
integer enforceMinConfirmsForChange
boolean false
gasPrice
One of2000000
^-?\d+$
eip1559
object maxPriorityFeePerGas
One of2000000
^-?\d+$
maxFeePerGas
One of2000000
^-?\d+$
gasLimit
One of2000000
^-?\d+$
targetWalletUnspents
integer 1000
minValue
One of2000000
^-?\d+$
maxValue
One of2000000
^-?\d+$
sequenceId
string nonce
string 2000000
^-?\d+$
noSplitChange
boolean false
unspents
array[string] 12b147dd8b4f73c01f72bdbf5b589eea614f3de609ffdbdac84852d6505cf8a3:1
changeAddress
string <= 250 characters
2MvrwRYBAuRtPTiZ5MyKg42Ke55W3fZJfZS
txFormat
string legacy
psbt
psbt-lite
legacy
psbt
instant
boolean memo
object type
string value
string comment
string <= 256 characters
destinationChain
string sourceChain
string addressType
string deprecated changeAddressType
Any ofp2sh
p2shP2wsh
p2wsh
p2tr
p2trMusig2
p2sh
startTime
string 1714067129.1020603
consolidateId
string 59cd72485007a239fb00282ed480da1f
^[0-9a-f]{32}$
lastLedgerSequence
integer ledgerSequenceDelta
integer rbfTxIds
array[string] isReplaceableByFee
boolean validFromBlock
integer validToBlock
integer trustlines
array[object] token
string txlm:BST-GBQTIOS3XGHB7LVYGBKQVJGCZ3R4JL5E4CBSWJ5ALIJUHBKS6263644L
action
add
remove
limit
string 2000000
^-?\d+$
stakingOptions
Any ofamount
One of2000000
^-?\d+$
validator
string <= 250 characters
2MvrwRYBAuRtPTiZ5MyKg42Ke55W3fZJfZS
messageKey
string reservation
object expireTime
string <date-time>
data
string 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
let params = { recipients: [ { amount: 0.01 * 1e8, address: '2NFfxvXpAWjKng7enFougtvtxxCJ2hQEMo4', }, { amount: 0.01 * 1e8, address: '2MsMFw75RKRiMb548q6W4jrJ63jwvvDdR2w', }, ], walletPassphrase: 'secretpassphrase1a5df8380e0e30', }; wallet.sendMany(params).then(function (transaction) { // print transaction details console.dir(transaction); });
transfer
object coin
string required btc
id
string required 59cd72485007a239fb00282ed480da1f
^[0-9a-f]{32}$
wallet
string required 59cd72485007a239fb00282ed480da1f
^[0-9a-f]{32}$
enterprise
string 59cd72485007a239fb00282ed480da1f
^[0-9a-f]{32}$
txid
string required b8a828b98dbf32d9fd1875cbace9640ceb8c82626716b4a64203fdc79bb46d26
txidType
string transactionHash
blockHash
height
integer required heightId
string date
string <date-time>
required confirmations
integer required type
string required send
receive
value
integer valueString
string required 2000000
^-?\d+$
intendedValueString
string 2000000
^-?\d+$
baseValue
integer baseValueString
string 2000000
^-?\d+$
baseValueWithoutFees
integer baseValueWithoutFeesString
string 2000000
^-?\d+$
feeString
string payGoFee
integer payGoFeeString
string usd
number required usdRate
number required state
string required confirmed
failed
initialized
pendingApproval
rejected
removed
replaced
signed
unconfirmed
confirmed
tags
array[string] required 59cd72485007a239fb00282ed480da1f
history
array[object] required comment
string required vSize
integer coinSpecific
object required sequenceId
string entries
array[object] usersNotified
boolean label
string replaces
array[string] replacedBy
array[string] txid
string tx
One ofstatus
string signed
signed (suppressed)
pendingApproval
transfer
object coin
string required btc
id
string required 59cd72485007a239fb00282ed480da1f
^[0-9a-f]{32}$
wallet
string required 59cd72485007a239fb00282ed480da1f
^[0-9a-f]{32}$
enterprise
string 59cd72485007a239fb00282ed480da1f
^[0-9a-f]{32}$
txid
string required b8a828b98dbf32d9fd1875cbace9640ceb8c82626716b4a64203fdc79bb46d26
txidType
string transactionHash
blockHash
height
integer required heightId
string date
string <date-time>
required confirmations
integer required type
string required send
receive
value
integer valueString
string required 2000000
^-?\d+$
intendedValueString
string 2000000
^-?\d+$
baseValue
integer baseValueString
string 2000000
^-?\d+$
baseValueWithoutFees
integer baseValueWithoutFeesString
string 2000000
^-?\d+$
feeString
string payGoFee
integer payGoFeeString
string usd
number required usdRate
number required state
string required confirmed
failed
initialized
pendingApproval
rejected
removed
replaced
signed
unconfirmed
confirmed
tags
array[string] required 59cd72485007a239fb00282ed480da1f
history
array[object] required comment
string required vSize
integer coinSpecific
object required sequenceId
string entries
array[object] usersNotified
boolean label
string replaces
array[string] replacedBy
array[string] txid
string tx
One ofstatus
string signed
signed (suppressed)
pendingApproval
error
string required requestId
string required context
object name
string required