Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dfinity/examples
/ functions
Functions
2,537 in github.com/dfinity/examples
⨍
Functions
2,537
◇
Types & classes
505
↓ 1 callers
Function
bisect
(low,high,func)
hosting/godot-html5-template/frontend/assets/ICPluginDemo.js:9
↓ 1 callers
Function
buildExprTree
(tokens)
hosting/unity-webgl-template/frontend/assets/unity-webgl-build.framework.js:3
↓ 1 callers
Function
build_brc20_reveal_script
Builds the BRC-20 reveal script that contains the JSON token deployment data. The reveal script follows the same Ordinals protocol format as text ins
rust/basic_bitcoin/src/brc20.rs:28
↓ 1 callers
Function
build_etching_script
Builds a runestone script for etching a new rune token. The runestone is encoded as an OP_RETURN output with the format: OP_RETURN OP_13 [LEB128 enco
rust/basic_bitcoin/src/runes.rs:141
↓ 1 callers
Function
build_ordinal_reveal_script
Builds the Ordinals reveal script that contains the inscription data. The reveal script follows the Ordinals protocol format: - Starts with key verif
rust/basic_bitcoin/src/ordinals.rs:133
↓ 1 callers
Function
build_reveal_transaction_with_fee
Constructs a reveal transaction with a specific fee amount. The reveal transaction has a simple structure: - Input: Spends the commit output from the
rust/basic_bitcoin/src/ordinals.rs:75
↓ 1 callers
Function
callMain
(args)
hosting/godot-html5-template/frontend/assets/ICPluginDemo.js:9
↓ 1 callers
Function
callMain
(args)
hosting/unity-webgl-template/frontend/assets/unity-webgl-build.framework.js:3
↓ 1 callers
Function
callee_wasm
()
rust/parallel_calls/multi_subnet/src/main.rs:81
↓ 1 callers
Function
callee_wasm
()
motoko/parallel_calls/multi_subnet/src/main.rs:78
↓ 1 callers
Function
caller_wasm
()
rust/parallel_calls/multi_subnet/src/main.rs:76
↓ 1 callers
Function
caller_wasm
()
motoko/parallel_calls/multi_subnet/src/main.rs:73
↓ 1 callers
Function
ccall
(ident,returnType,argTypes,args,opts)
hosting/godot-html5-template/frontend/assets/ICPluginDemo.js:9
↓ 1 callers
Function
ccall
(ident,returnType,argTypes,args,opts)
hosting/unity-webgl-template/frontend/assets/unity-webgl-build.framework.js:3
↓ 1 callers
Method
chain_id
(&self)
rust/basic_ethereum/backend/lib.rs:273
↓ 1 callers
Function
checkHighScore
()
rust/flying_ninja/frontend/src/Game.jsx:168
↓ 1 callers
Function
checkHighScore
()
motoko/flying_ninja/frontend/src/Game.jsx:168
↓ 1 callers
Function
cleanTypes
({ dest = `./src/declarations` })
svelte/sveltekit-starter/update.types.mjs:10
↓ 1 callers
Function
close_lot
(lot_id: LotId, bid_counters: Vec<BidCounter>, decrypted_bids: Vec<DecryptedBid>)
rust/vetkeys/basic_timelock_ibe/backend/src/lib.rs:351
↓ 1 callers
Function
close_one_lot_if_any_is_open_and_expired
()
rust/vetkeys/basic_timelock_ibe/backend/src/lib.rs:219
↓ 1 callers
Function
cn
(...classes)
hosting/oisy-signer-demo/frontend/src/libs/utils.js:1
↓ 1 callers
Function
computeUnpackAlignedImageSize
(width,height,sizePerPixel,alignment)
hosting/unity-webgl-template/frontend/assets/unity-webgl-build.framework.js:3
↓ 1 callers
Function
compute_neuron_staking_subaccount
Compute the subaccount for neuron staking
rust/stake_neuron_from_cli/src/lib.rs:183
↓ 1 callers
Method
compute_recovery_id
(&self, message_hash: &[u8], signature: &[u8])
rust/basic_ethereum/backend/ethereum_wallet.rs:66
↓ 1 callers
Function
convertReturnValue
(ret)
hosting/godot-html5-template/frontend/assets/ICPluginDemo.js:9
↓ 1 callers
Function
convertReturnValue
(ret)
hosting/unity-webgl-template/frontend/assets/unity-webgl-build.framework.js:3
↓ 1 callers
Function
convertToBigInt
(num: number)
motoko/ic-pos/src/icpos_frontend/utils/convertToBigInt.ts:1
↓ 1 callers
Function
convertToDataUrl
(blob)
rust/qrcode/frontend/src/main.js:61
↓ 1 callers
Function
convertU32PairToI53
(lo,hi)
hosting/unity-webgl-template/frontend/assets/unity-webgl-build.framework.js:3
↓ 1 callers
Function
convert_decrypted_values_to_decrypted_bids
( lot_id: LotId, encrypted_bids: Vec<EncryptedBid>, decrypted_values: Vec<Result<Vec<u8>, String>>
rust/vetkeys/basic_timelock_ibe/backend/src/lib.rs:299
↓ 1 callers
Function
copyPrincipal
(principal: string | Principal | undefined)
motoko/ic-pos/src/icpos_frontend/components/PrincipalPill.tsx:7
↓ 1 callers
Function
createActor
(canisterId, options = {})
motoko/ic-pos/src/declarations/icrc1_index/index.js:15
↓ 1 callers
Function
createActor
(canisterId, options = {})
motoko/ic-pos/src/declarations/icrc1_ledger/index.js:15
↓ 1 callers
Function
createActor
(canisterId, options = {})
motoko/ic-pos/src/declarations/internet_identity/index.js:15
↓ 1 callers
Function
createActor
(options)
svelte/svelte-motoko-starter/src/frontend/src/store/auth.js:11
↓ 1 callers
Function
createActor
(canisterId, options = {})
svelte/svelte-motoko-starter/src/declarations/frontend/index.js:16
↓ 1 callers
Function
createActor
(canisterId, options = {})
svelte/svelte-motoko-starter/src/declarations/backend/index.js:16
↓ 1 callers
Function
createActor
(canisterId, options = {})
svelte/svelte-motoko-starter/src/declarations/internet-identity/index.js:16
↓ 1 callers
Function
createBackendActor
(identity)
rust/who_am_i/src/frontend/src/actor.js:35
↓ 1 callers
Function
createBackendActor
(identity)
motoko/filevault/frontend/src/actor.js:31
↓ 1 callers
Function
createBackendActor
(identity)
motoko/who_am_i/src/frontend/src/actor.js:35
↓ 1 callers
Function
createEncryptedMaps
(agent: HttpAgent)
rust/vetkeys/password_manager_with_metadata/frontend/src/lib/encrypted_maps.ts:12
↓ 1 callers
Function
createEncryptedMaps
( agentOptions?: HttpAgentOptions, )
rust/vetkeys/password_manager/frontend/src/lib/encrypted_maps.ts:13
↓ 1 callers
Function
createLot
( name: string, description: string, durationSeconds: number, )
rust/vetkeys/basic_timelock_ibe/frontend/src/main.ts:201
↓ 1 callers
Function
createMessageElement
( sender: Principal, timestamp: bigint, plaintextString: string, index: number, )
rust/vetkeys/basic_ibe/frontend/src/main.ts:140
↓ 1 callers
Function
createPasswordManager
(agentOptions?: { identity?: HttpAgent["config"]["identity"]; })
rust/vetkeys/password_manager_with_metadata/frontend/src/lib/password_manager.ts:154
↓ 1 callers
Function
createRecursive
(dir)
hosting/godot-html5-template/frontend/assets/ICPluginDemo.js:9
↓ 1 callers
Function
createWasm
()
hosting/godot-html5-template/frontend/assets/ICPluginDemo.js:9
↓ 1 callers
Function
createWasm
()
hosting/unity-webgl-template/frontend/assets/unity-webgl-build.framework.js:3
↓ 1 callers
Function
create_image_reponse
(image: ImageData)
rust/photo_gallery/backend/lib.rs:99
↓ 1 callers
Function
create_not_found_response
()
rust/photo_gallery/backend/lib.rs:91
↓ 1 callers
Function
create_partition_canister
(cycle_share: u128)
rust/composite_query/backend/lib.rs:121
↓ 1 callers
Function
create_test_api
Helper to create a direct CanisterApi instance for testing (sync methods)
rust/unit_testable_rust_canister/backend/src/canister_api.rs:164
↓ 1 callers
Function
d
(e)
hosting/unity-webgl-template/frontend/assets/unity-webgl-build.loader.js:1
↓ 1 callers
Function
decryptMessage
(encryptedMessage: Uint8Array)
rust/vetkeys/basic_ibe/frontend/src/main.ts:94
↓ 1 callers
Function
decryptNotes
( notes: EncryptedNote[], cryptoService: CryptoService )
rust/vetkeys/encrypted_notes_app_vetkd/frontend/src/store/notes.ts:28
↓ 1 callers
Method
decryptWithNoteKey
(note_id: bigint, owner: string, data: string)
rust/vetkeys/encrypted_notes_app_vetkd/frontend/src/lib/crypto.ts:17
↓ 1 callers
Function
decrypt_bids
(lot_id: LotId, encrypted_bids: Vec<EncryptedBid>)
rust/vetkeys/basic_timelock_ibe/backend/src/lib.rs:243
↓ 1 callers
Function
decrypt_ciphertexts
In the canister, using the IBE key derived from the identity decrypt a vector of ciphertexts, which makes them public. Returns a vector, where each va
rust/vetkeys/basic_timelock_ibe/backend/src/lib.rs:258
↓ 1 callers
Function
default_governance_for_tests
Helper function that provides a pre-configured Governance instance This uses the same defaults that GovernanceCanisterInitPayloadBuilder::new().build(
rust/unit_testable_rust_canister/backend/tests/integration_tests.rs:417
↓ 1 callers
Function
demangle
(func)
hosting/godot-html5-template/frontend/assets/ICPluginDemo.js:9
↓ 1 callers
Function
demangle
(func)
hosting/unity-webgl-template/frontend/assets/unity-webgl-build.framework.js:3
↓ 1 callers
Function
demangleAll
(text)
hosting/godot-html5-template/frontend/assets/ICPluginDemo.js:9
↓ 1 callers
Function
demangleAll
(text)
hosting/unity-webgl-template/frontend/assets/unity-webgl-build.framework.js:3
↓ 1 callers
Method
derive_new_public_key
( &self, derivation_path: &DerivationPath, )
rust/basic_ethereum/backend/ecdsa.rs:12
↓ 1 callers
Function
derive_public_key
(owner: &Principal, public_key: &EcdsaPublicKey)
rust/basic_ethereum/backend/ethereum_wallet.rs:91
↓ 1 callers
Function
detailsFromFile
(file)
hosting/photo-storage/src/App.jsx:34
↓ 1 callers
Function
detailsFromKey
(key)
hosting/photo-storage/src/App.jsx:26
↓ 1 callers
Function
detect
Returns a bounding box around the face detected in the given image.
rust/face-recognition/src/backend/src/onnx.rs:93
↓ 1 callers
Function
displayMessages
(inbox: Inbox)
rust/vetkeys/basic_ibe/frontend/src/main.ts:187
↓ 1 callers
Function
doInit
(promise)
hosting/godot-html5-template/frontend/assets/ICPluginDemo.js:609
↓ 1 callers
Function
doRequestFullscreen
(target,strategy)
hosting/unity-webgl-template/frontend/assets/unity-webgl-build.framework.js:3
↓ 1 callers
Function
doXHR
(from,to)
hosting/godot-html5-template/frontend/assets/ICPluginDemo.js:9
↓ 1 callers
Function
doXHR
(from,to)
hosting/unity-webgl-template/frontend/assets/unity-webgl-build.framework.js:3
↓ 1 callers
Function
download_wasm_to
(url: String, wasm_path: &Path)
rust/unit_testable_rust_canister/backend/tests/integration_tests.rs:126
↓ 1 callers
Function
dynCallLegacy
(sig,ptr,args)
hosting/unity-webgl-template/frontend/assets/unity-webgl-build.framework.js:3
↓ 1 callers
Function
emscriptenWebGLGet
(name_,p,type)
hosting/unity-webgl-template/frontend/assets/unity-webgl-build.framework.js:3
↓ 1 callers
Function
emscriptenWebGLGetIndexed
(target,index,data,type)
hosting/unity-webgl-template/frontend/assets/unity-webgl-build.framework.js:3
↓ 1 callers
Function
emscriptenWebGLGetUniform
(program,location,params,type)
hosting/unity-webgl-template/frontend/assets/unity-webgl-build.framework.js:3
↓ 1 callers
Function
emscriptenWebGLGetVertexAttrib
(index,pname,params,type)
hosting/unity-webgl-template/frontend/assets/unity-webgl-build.framework.js:3
↓ 1 callers
Function
emscripten_realloc_buffer
(size)
hosting/godot-html5-template/frontend/assets/ICPluginDemo.js:9
↓ 1 callers
Function
emscripten_realloc_buffer
(size)
hosting/unity-webgl-template/frontend/assets/unity-webgl-build.framework.js:3
↓ 1 callers
Function
encode64
(data)
hosting/godot-html5-template/frontend/assets/ICPluginDemo.js:9
↓ 1 callers
Function
encode64
(data)
hosting/unity-webgl-template/frontend/assets/unity-webgl-build.framework.js:3
↓ 1 callers
Function
encode_rune_name
Encodes a rune name into its numeric representation. Runes use a modified base-26 encoding where A=0, B=1, ... Z=25. Names are encoded with A as the
rust/basic_bitcoin/src/runes.rs:79
↓ 1 callers
Function
encrypt
( cleartext: Uint8Array, receiver: Principal, )
rust/vetkeys/basic_ibe/frontend/src/main.ts:56
↓ 1 callers
Function
encrypt
( cleartext: Uint8Array, identity: Uint8Array, )
rust/vetkeys/basic_timelock_ibe/frontend/src/main.ts:187
↓ 1 callers
Method
encryptWithNoteKey
(note_id: bigint, owner: string, data: string)
rust/vetkeys/encrypted_notes_app_vetkd/frontend/src/lib/crypto.ts:10
↓ 1 callers
Function
ensure_none_in_processing
()
rust/guards/backend/lib.rs:124
↓ 1 callers
Function
ensure_wasm_built
Ensures the WASM is built and up-to-date, returns path to the WASM file
rust/unit_testable_rust_canister/backend/tests/integration_tests.rs:32
↓ 1 callers
Function
enumerateMediaDeviceList
()
hosting/unity-webgl-template/frontend/assets/unity-webgl-build.framework.js:3
↓ 1 callers
Function
estimate_transaction_fees
()
rust/basic_ethereum/backend/lib.rs:244
↓ 1 callers
Function
evm_rpc
Resolve the EVM RPC canister ID at runtime. icp-cli sets the `PUBLIC_CANISTER_ID:evm_rpc` env var; fall back to the well-known mainnet ID.
rust/evm_block_explorer/backend/lib.rs:21
↓ 1 callers
Function
exception_addRef
(info)
hosting/unity-webgl-template/frontend/assets/unity-webgl-build.framework.js:3
↓ 1 callers
Function
exception_decRef
(info)
hosting/unity-webgl-template/frontend/assets/unity-webgl-build.framework.js:3
↓ 1 callers
Function
exitRuntime
()
hosting/godot-html5-template/frontend/assets/ICPluginDemo.js:9
↓ 1 callers
Function
exitRuntime
()
hosting/unity-webgl-template/frontend/assets/unity-webgl-build.framework.js:3
↓ 1 callers
Function
extractTitle
(html: string)
rust/vetkeys/encrypted_notes_app_vetkd/frontend/src/lib/note.ts:102
↓ 1 callers
Function
fast_forward
(ic: &PocketIc, ticks: u64)
rust/threshold-schnorr/backend/tests/integration_tests.rs:216
↓ 1 callers
Function
fetchBalances
()
hosting/oisy-signer-demo/frontend/src/hooks/useOisyWallet.js:66
← previous
next →
501–600 of 2,537, ranked by callers