Blockchain

Blockchain synchronization operations for syncing entities to Solana blockchain

Prepare blockchain sync transaction

post

Prepares a blockchain transaction for syncing an entity (Zone, Pin, GCP, or File) to the Solana blockchain. Returns transaction metadata and data that the client will sign and send. Authentication required.

Authorizations
X-Dynamic-User-IdstringRequired

Dynamic authentication header. Required for blockchain endpoints and other authenticated operations.

Body
entityTypestring · enumRequired

Type of entity to sync to blockchain

Possible values:
entityIdinteger · min: 1Required

ID of the entity to sync

networkstring · enumOptional

Solana network to use (defaults to devnet if not specified)

Possible values:
Responses
chevron-right
200

Transaction prepared successfully

application/json
or
post
/blockchain/sync

Confirm blockchain transaction

post

Records a confirmed blockchain transaction in the database after it has been signed and sent by the client. Verifies the transaction status and updates the entity's blockchain sync status. Authentication required.

Authorizations
X-Dynamic-User-IdstringRequired

Dynamic authentication header. Required for blockchain endpoints and other authenticated operations.

Body
entityTypestring · enumRequired

Type of entity that was synced

Possible values:
entityIdinteger · min: 1Required

ID of the entity that was synced

signaturestring · min: 1Required

Transaction signature from Solana blockchain

networkstring · enumOptional

Solana network used for the transaction

Possible values:
blockHeightinteger · min: 1Optional

Block height at which the transaction was confirmed (optional)

Responses
chevron-right
200

Transaction confirmed successfully

application/json
or
post
/blockchain/confirm

Mark blockchain sync as failed

post

Marks an entity's blockchain sync as failed (e.g., when transaction is cancelled or fails). Authentication required.

Authorizations
X-Dynamic-User-IdstringRequired

Dynamic authentication header. Required for blockchain endpoints and other authenticated operations.

Body
entityTypestring · enumRequired

Type of entity to sync to blockchain

Possible values:
entityIdinteger · min: 1Required

ID of the entity to sync

networkstring · enumOptional

Solana network to use (defaults to devnet if not specified)

Possible values:
Responses
chevron-right
200

Sync marked as failed successfully

application/json
successbooleanOptionalExample: true
post
/blockchain/fail

Last updated