Scripts & addresses
address(address)
Fluent API for address scripts. See address.
Live editor
function DemoAddress() { return ( <Json fn={async () => { return await chronik .address('ecash:qr3ax9kpca8qkgtwk0cdqdhnprsgfsq3xu2dx56fmw') .history(0); }} /> ); } render(<DemoAddress />);
Result
script(type, payload)
Fluent API for scripts given type and payload hash. See script.
Live editor
function DemoScript() { return ( <Json fn={async () => { return await chronik .script('p2pkh', 'e3d316c1c74e0b216eb3f0d036f308e084c01137') .history(0); }} /> ); } render(<DemoScript />);
Result
history(pageOffset, pageSize)
History for the selected script or address. See ScriptEndpoint.history.
Live editor
function DemoAddressHistory() { return ( <Json fn={async () => { return await chronik .address('ecash:prfhcnyqnl5cgrnmlfmms675w93ld7mvvqd0y8lz07') .history(300, 2); }} /> ); } render(<DemoAddressHistory />);
Result
utxos()
UTXOs for the selected script or address. See ScriptEndpoint.utxos.
Live editor
function DemoScriptUtxos() { return ( <Json fn={async () => { return await chronik .script( 'p2pk', '04678afdb0fe5548271967f1a67130b7105cd6a828e03909a6' + '7962e0ea1f61deb649f6bc3f4cef38c4f35504e51ec112de5c' + '384df7ba0b8d578a4c702b6bf11d5f', ) .utxos(); }} /> ); } render(<DemoScriptUtxos />);
Result