starknet_addDeclareTransaction

Submits a class declaration transaction to the Starknet network. The transaction includes details about the new class to be added.

Path parameters

apiKeystringRequired

Request

This endpoint expects an object.
declare_transactionobjectRequired
The declaration transaction to be submitted

Response

The result of the transaction submission
transaction_hashstringformat: "^0x(0|[a-fA-F1-9]{1}[a-fA-F0-9]{0,62})$"
The transaction hash, as assigned in StarkNet
class_hashstringformat: "^0x(0|[a-fA-F1-9]{1}[a-fA-F0-9]{0,62})$"
A field element. Represented by at most 63 hex digits