Protobuf encode
Encode numbered field maps into raw protobuf hex and base64 wire frames.
Upstream
local · protobuf encoderEvery planParameters
| Name | Type | Description |
|---|---|---|
fieldsrequired | object | Map of protobuf field numbers to integers, UTF-8 strings, hex bytes or nested objects. e.g. {"1":12,"2":"test"} |
Pricing
| Plan | Per call | Per 1,000 calls |
|---|---|---|
| Starter | 2 credits | $0.23 |
| Growth | 2 credits | $0.16 |
| Scale | 2 credits | $0.12 |
Response fields
| Field | Type | Description |
|---|---|---|
byte_length | integer | Decoded byte length value. |
hex | string | Decoded hex value. |
base64 | string | Decoded base64 value. |
field_count | integer | Total field count. |
Responses
A 200 returns JSON with stable field names. Every response carries x-credits-cost, x-credits-tier and x-credits-remaining. Errors return a JSON body with a stable code and cost 0 credits. Error codes
import os
from tikultra import TikUltra
with TikUltra(api_key=os.environ["TIKULTRA_KEY"]) as client:
res = client.crypto.protobuf_encode({
"1": 12,
"2": "test",
"3": {
"1": 1233,
"2": "musical_ly",
},
})
print(res.credits_cost, res.data){
"byte_length": 24,
"hex": "080c1204746573741a0e08d109120a6d75736963616c5f6c79",
"base64": "CAwSBHRlc3QaDgjRCxIKbXVzaWNhbF9seQ==",
"field_count": 3
}More in Devices, signing & primitives
GET/v1/resolveResolve2 crPOST/v1/resolveResolve (POST)2 crGET/v1/id-converterID converter2 crPOST/v1/crypto/protobuf/decodeProtobuf decode2 crPOST/v1/jobs/submitSubmit batch jobper taskGET/v1/jobs/{id}Get jobFreeGET/v1/devicesList devicesFreePOST/v1/devices/provisionGrowth+Provision device10 crGET/v1/devices/templatesHardware templatesFreeGET/v1/apps/versionsApp versionsFreeGET/v1/devices/{id}Get deviceFreePOST/v1/devices/{id}/bootstrapGrowth+Bootstrap device10 crPOST/v1/devices/{id}/reportGrowth+Device security report10 crPOST/v1/devices/{id}/warmGrowth+Warm device feed10 crPOST/v1/crypto/signSign request2 crPOST/v1/crypto/x-cylonsX-Cylons token2 crPOST/v1/crypto/x-argus/decryptX-Argus decrypt2 crPOST/v1/crypto/x-ladon/decryptX-Ladon decrypt2 crPOST/v1/crypto/x-gorgon/decryptX-Gorgon decrypt2 crPOST/v1/crypto/ttencrypt/encryptTTEncrypt encode2 crPOST/v1/crypto/ttencrypt/decryptTTEncrypt decode2 crPOST/v1/crypto/zstd/compresszstd compress2 crPOST/v1/crypto/zstd/decompresszstd decompress2 crPOST/v1/crypto/passport-hashPassport identifier hash2 cr
Ready to build?
Start with 2,500 free credits and test every public endpoint, then pick a plan.