Hiro · Capability
Stacks 3.0+ RPC API — Smart Contracts
Stacks 3.0+ RPC API — Smart Contracts. 10 operations. Lead operation: Get the MARF value for a given key. Self-contained Naftiko capability covering one Hiro business surface.
What You Can Do
GET
Getclaritymarfvalue
— Get the MARF value for a given key
/v1/v2/clarity/marf/{marf-key-hash}
GET
Getclaritymetadata
— Get the contract metadata for the metadata key
/v1/v2/clarity/metadata/{deployer-address}/{contract-name}/{clarity-metadata-key}
GET
Getconstantvalue
— Get the value of a constant inside a contract
/v1/v2/constant-val/{deployer-address}/{contract-name}/{constant-name}
POST
Callreadonlyfunction
— Call read-only function
/v1/v2/contracts/call-read/{deployer-address}/{contract-name}/{function-name}
GET
Getcontractinterface
— Get contract interface
/v1/v2/contracts/interface/{deployer-address}/{contract-name}
GET
Getcontractsource
— Get contract source
/v1/v2/contracts/source/{deployer-address}/{contract-name}
GET
Getcontractdatavariable
— Get contract data variable
/v1/v2/data-var/{principal}/{contract-name}/{var-name}
POST
Getcontractdatamapentry
— Get specific data-map inside a contract
/v1/v2/map-entry/{deployer-address}/{contract-name}/{map-name}
GET
Checktraitimplementation
— Get trait implementation details
/v1/v2/traits/{deployer-address}/{contract-name}/{trait-deployer-address}/{trait-contract-name}/{trait-name}
POST
Fastcallreadonlyfunction
— Call read-only function in fast mode (no cost and memory tracking)
/v1/v3/contracts/fast-call-read/{deployer-address}/{contract-name}/{function-name}
MCP Tools
get-marf-value-given-key
Get the MARF value for a given key
read-only
idempotent
get-contract-metadata-metadata-key
Get the contract metadata for the metadata key
read-only
idempotent
get-value-constant-inside-contract
Get the value of a constant inside a contract
read-only
idempotent
call-read-only-function
Call read-only function
get-contract-interface
Get contract interface
read-only
idempotent
get-contract-source
Get contract source
read-only
idempotent
get-contract-data-variable
Get contract data variable
read-only
idempotent
get-specific-data-map-inside
Get specific data-map inside a contract
read-only
get-trait-implementation-details
Get trait implementation details
read-only
idempotent
call-read-only-function-fast
Call read-only function in fast mode (no cost and memory tracking)