didc
binary from Candid releasesic-wasm
: cargo install ic-wasm
candid-extractor
: cargo install candid-extractor
--network
argument is not provided, it defaults to the public playground. For local deployments use --network=local
. For mainnet use --network=ic
.
.did
file is a text file that contains a Candid service description, written either manually or generated from a canister’s code.dfx canister deploy
to combine the following steps in the future:
dfx canister create <canister_name>
dfx build
dfx canister install <canister_name>
canisterId
query parameter with value: u6s2n-gx777-77774-qaaba-cai
; this is Candid’s canister that is necessary in order to render our canister’s functionality.
Note: ICP’s canister IDs are non-deterministic, so you may need to replace the above uxrrr-q7777-77774-qaaaq-cai
canister ID with the ID that is generated from the Create and Deploy canister step if you are not wiping the subnet state for consecutive deployments.
get_address_inscriptions(address: text, count: text) -> (Result)
Parameters:
address
: Bitcoin address (e.g., “bc1pa2lw8d6u3kkexzqn9hqgzultkzjjc9rxtveldes68ryfdq8tmslqwfuccl”)count
: Maximum number of inscriptions to return (e.g., “10”)AddressInscriptions
containing:
data
: Array of inscription detailslast_updated
: Block information when data was last updatednext_cursor
: Pagination cursor for additional resultsget_utxo_inscriptions(tx_hash: text, output_index: text) -> (Result_1)
Parameters:
tx_hash
: Transaction hashoutput_index
: Output index within the transactionUtxoInscriptions
containing:
data
: Array of inscription details for the UTXOlast_updated
: Block informationnext_cursor
: Pagination cursorset_api_key(key: text) -> (Result_2)
Parameters:
key
: Maestro API key stringget_api_key() -> (text)
Returns: Current API key string
Authorization: Only authorized principals can call this method.
Example Usage:
dfx identity get-principal
to check your principal IDmake generate_did
before deploymentic_cdk::println!
statements in the source code. These will output to the replica logs during development.