-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLLMs-openapi.json
More file actions
1 lines (1 loc) · 4.01 KB
/
Copy pathLLMs-openapi.json
File metadata and controls
1 lines (1 loc) · 4.01 KB
1
{"openapi":"3.1.0","info":{"title":"Bitcoin Wallet RPC","version":"0.1.0"},"paths":{"/balance":{"post":{"summary":"Get Balance","description":"Get balance for addresses.","operationId":"get_balance_balance_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BalanceRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/block-height":{"get":{"summary":"Get Block Height","description":"Get current block height and last update timestamp.","operationId":"get_block_height_block_height_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/derive":{"post":{"summary":"Derive Address","description":"Derive a wallet address from a master extended public key (BIP84).\n\nDerivation path: m/84'/coin'/account_index'/CHAIN_EXT/address_index","operationId":"derive_address_derive_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeriveRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/history":{"post":{"summary":"Get History","description":"Get transaction history for addresses.","operationId":"get_history_history_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HistoryRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/transactions":{"post":{"summary":"Get Transactions","description":"Get verbose transaction details for transaction hashes.","operationId":"get_transactions_transactions_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransactionsRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"BalanceRequest":{"properties":{"addresses":{"items":{"type":"string"},"type":"array","title":"Addresses"}},"type":"object","required":["addresses"],"title":"BalanceRequest","description":"Request for script hash balance."},"DeriveRequest":{"properties":{"xpub":{"type":"string","title":"Xpub"},"account_index":{"type":"integer","title":"Account Index","default":0},"address_index":{"type":"integer","title":"Address Index","default":0}},"type":"object","required":["xpub"],"title":"DeriveRequest","description":"Request for wallet address derivation from extended key."},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"HistoryRequest":{"properties":{"addresses":{"items":{"type":"string"},"type":"array","title":"Addresses"}},"type":"object","required":["addresses"],"title":"HistoryRequest","description":"Request for transaction history."},"TransactionsRequest":{"properties":{"tx_hashes":{"items":{"type":"string"},"type":"array","title":"Tx Hashes"}},"type":"object","required":["tx_hashes"],"title":"TransactionsRequest","description":"Request for transaction details."},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}}}