v1

latestSwagger 2.02026-07-17172519.5 KB
Bonds Module

Create a bond

Create a bond

post/bonds/create_bond

Request body

tokenstring
namestring
descriptionstring
function_typestring
function_parametersstring
reserve_tokensstring
tx_fee_percentagestring
exit_fee_percentagestring
fee_addressstring

bech32 encoded address

max_supplystring
order_quantity_limitsstring
sanity_ratestring
sanity_margin_percentagestring
allow_sellsstring
signersstring
batch_blocksstring
outcome_paymentstring

Example request

{
  "base_req": {
    "from": "cosmos1g9ahr6xhht5rmqven628nklxluzyv8z9jqjcmc",
    "memo": "Sent via Cosmos Voyager 🚀",
    "chain_id": "Cosmos-Hub",
    "account_number": "0",
    "sequence": "1",
    "gas": "200000",
    "gas_adjustment": "1.2",
    "fees": [
      {
        "denom": "stake"
      }
    ]
  },
  "token": "abc",
  "name": "Bond Name",
  "description": "Description about bond.",
  "function_type": "power_function",
  "function_parameters": "m:12,n:2,c:100",
  "reserve_tokens": "res1,res2,...",
  "tx_fee_percentage": "0.5",
  "exit_fee_percentage": "1.5",
  "max_supply": "1000abc",
  "order_quantity_limits": "100abc,200xyz,...",
  "sanity_rate": "12.34",
  "sanity_margin_percentage": "56.78",
  "allow_sells": "true",
  "signers": "cosmos1qns07zjjsllfc6w7486f7v2nvyfsq30myn3nje,cosmos1qns07zjjsllfc6w7486f7v2nvyfsq30myn3nje",
  "batch_blocks": "5",
  "outcome_payment": "100abc,200xyz,..."
}

Response

Default response