oTokens Subgraph
oToken
OToken schema:
type OToken @entity(immutable: true) {
id: Bytes!
oToken: Bytes! # address
blockNumber: BigInt!
blockTimestamp: BigInt!
transactionHash: Bytes!
}
Field
Type
Descripton
id
Bytes! (required string)
Unique OToken id
oToken
Bytes! (required string)
Address of OToken contract
blockNumber
BigInt! (required string)
Number of the block when OToken contract was created
blockTimestamp
BigInt! (required string)
Timestamp of the block when OToken contract was created
transactionHash
Bytes! (required string)
Hash of the transaction with event of OToken creation
Example of OToken querying:
{
otokens(first: 5) {
id
oToken
blockNumber
blockTimestamp
transactionHash
}
}
Last updated