Skip to content
COPY-READY STARTERS

Starter Templates

These are copy-ready payloads and zero-code testing patterns for users who want to participate immediately. Pick a template, encrypt sensitive fields if needed, submit it through the Oracle contract, and read the callback.

Zero-Code Mainnet Test

You can test Morpheus on Neo N3 Mainnet without deploying your own contract first.

Oracle contract: 0xf54d8584ef82315c1800373272ab08ae0db2d5ef

Optional universal callback adapter: 0x89b05cac00804648c666b47ecb1c57bc185821b7

The shared kernel inbox is canonical. If you still want an external adapter for testing, call request(requestType, payload, callbackContract, callbackMethod) with callback target 0x89b05cac00804648c666b47ecb1c57bc185821b7, callback method onOracleResult, and attach exactly 0.01 GAS.

1. Privacy Oracle Templates

Built-in Provider Oracle

Fastest path for a public quote callback through the Oracle contract.

jsonBuilt-in Provider Oracle
{
 "symbol": "TWELVEDATA:NEO-USD",
 "json_path": "price",
 "target_chain": "neo_n3"
}

Private API With Encrypted Token

Best for premium APIs or project-specific endpoints that require auth.

jsonPrivate API With Encrypted Token
{
 "url": "https://api.example.com/private-price",
 "method": "GET",
 "encrypted_token": "<sealed bearer token>",
 "token_header": "Authorization",
 "json_path": "price",
 "target_chain": "neo_n3"
}

Built-in Provider + Encrypted Payload Patch

Hide fields such as json_path, project-specific params, or helper settings.

jsonBuilt-in Provider + Encrypted Payload Patch
{
 "symbol": "TWELVEDATA:BTC-USD",
 "encrypted_payload": "<sealed {\"json_path\":\"price\",\"target_chain\":\"neo_n3\"}>"
}

Custom URL + JS Reduction

Fetch public data and return only a scalar or boolean to the contract.

jsonCustom URL + JS Reduction
{
 "url": "<production-api-url>",
 "json_path": "<json-path>",
 "script": "<production-reduction-script>",
 "entry_point": "process",
 "target_chain": "neo_n3"
}

2. Privacy Compute Templates

privacy.mask

Mask personally identifiable strings before returning them.

jsonprivacy.mask
{
 "mode": "builtin",
 "function": "privacy.mask",
 "input": { "value": "13812345678", "unmasked_left": 3, "unmasked_right": 4 },
 "target_chain": "neo_n3"
}

math.modexp

Big integer modular arithmetic for cryptography-heavy workloads.

jsonmath.modexp
{
 "mode": "builtin",
 "function": "math.modexp",
 "input": { "base": "123456789", "exponent": "987654321", "modulus": "2147483647" },
 "target_chain": "neo_n3"
}

zkp.public_signal_hash

Compress large public signal arrays into one digest.

jsonzkp.public_signal_hash
{
 "mode": "builtin",
 "function": "zkp.public_signal_hash",
 "input": { "circuit_id": "credit_v1", "signals": ["1", "2", "3"] },
 "target_chain": "neo_n3"
}

Encrypted Built-in Compute

Hide both the function name and its input until the job reaches the TEE.

jsonEncrypted Built-in Compute
{
 "encrypted_payload": "<sealed {\"mode\":\"builtin\",\"function\":\"math.modexp\",\"input\":{\"base\":\"2\",\"exponent\":\"10\",\"modulus\":\"17\"},\"target_chain\":\"neo_n3\"}>"
}

3. Best Next Steps

CURRENT DESIGNUPDATED FOR DUAL-CVM ARCHITECTURE