unsafe_mergeCoins
POST
/{apiKey}
Constructs a BCS-encoded transaction block that merges the balance of coin_to_merge into primary_coin. This transaction must be signed and then submitted using a separate execute call. The gas object must be owned by the signer.
Path Parameters
apiKeystringrequireddefaults to docs-demoFor higher throughput, create your own API key
Request
signerstringrequiredThe transaction signer's Sui address.
primary_coinstringrequiredThe coin object to merge into. This coin will remain after the transaction.
coin_to_mergestringrequiredThe coin object to be merged. It will be destroyed and its balance added to primary_coin.
gasstringoptionalThe gas object to be used. If omitted, the node will auto-select one from the signer's owned coins.
gas_budgetstringrequiredThe gas budget for the transaction. The transaction fails if gas used exceeds this.
Responses
200
The unsigned transaction block that merges coins.
Was this page helpful?