Skip to main content
POST
Create file

Authorizations

x-api-key
string
header
required

ROOTKey API key (rk_live_... for production, rk_test_... for the test network).

Body

multipart/form-data
file
file
required

The file to upload

ownerVault
string
required

Address of the vault that will own the file

Example:

"0xdf67CA8286510997567685c0385ECeAb11C23C92"

fileName
string

Override the file's display name

expirationDate
string<date-time>

Optional expiry date-time for the smart contract

Response

File anchored

chainId
number
required
Example:

137

transactionHash
string
required

On-chain transaction hash of the anchoring transaction

Example:

"0xabc123..."