Get Qi Payment Code
get_qi_payment_codeRetrieve a reusable BIP-47 payment code for a Qi wallet to receive Qi via send_qi. It derives a fresh on-chain address per sender, requires the wallet password, and runs locally.
Instructions
Get the reusable BIP-47 payment code for a Qi wallet -- this is what you hand someone so they can send you Qi via send_qi, the same way you'd hand out an address, except a payment code is not itself an on-chain address: it derives a fresh one behind the scenes for each sender. Requires the password because deriving it needs the wallet's BIP-47 key material from its mnemonic. Purely local -- no network call.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| network | No | Which Quai network to query: "mainnet" or "testnet" (the Orchard testnet). Defaults to mainnet. | mainnet |
| password | Yes | The wallet's password. | |
| walletName | Yes | The name of a Qi wallet previously created with create_qi_wallet or import_qi_wallet. |