curl --location --request POST 'localhost:16661' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic *****' \
--data-raw '[
{
"method": "createmutisigwallet",
"params": [
"multisig1-2of3",
2, ["xpub6BvFdAWrvdnASyu41VYvS2Q5P4whhnbLZkd9qv6A1AFwwp5DAZTr3hMKTTDYKBsXfW3bXdrqxGmKhn88tAgzn4ws7otv37uxp9DPrGCZoyL", "xpub6Cnh2EhE9yAggVwQA7mAy2Reh7hP9VsqVMa7FTBckKUYKwHvi1HPJcqwkuunA5V3LRhCvx8EeKdKoxSRFD2GJQeAd7wawJC1jqJvD2HeP8W"],
"trim protect peace young drop area rural choose click begin climb live purchase kick domain only easily arrive model file first mind shed empty",
"R8bg2JFXBDtPys2r",
"R8bg2JFXBDtPys2r"
],
"id": 1525052699893
}
]'
This should create and store the wallet in file system right place. Trigger wallet synchronisation.
This specific wallet will have some xrc coin in mainnet for testing.
This is a small how-to for creating a multisig wallet.
To start XRC node for testing use following start args:
Creating Multisig Wallet
This should create and store the wallet in file system right place. Trigger wallet synchronisation. This specific wallet will have some xrc coin in mainnet for testing.
To create a raw transaction we use.
This returns transaction hex that’s passed to next RPC call.
To fund & sign multisig transaction we call with all co-signer wallets :
To switch between other wallets in node we use:
To combine signatures we use:
To send transaction to network we use: