Skip to main content

Objects

Address

Address on the blockchain, contains info about tokens and ENS profiles

Fields

NameDescription
address
HexAddress!

EIP55 checksummed hexadecimal address

reverseProfile
Profile

ENS profile for the reverse-record set in ENS for this address

profile
Profile

ENS profile which was used to refer to this address in a top-level argument, null if this address was queried as a hex address instead of an ENS name.

Example:address(name: "vitalik.eth") { profile { name } } will return vitalik.eth as the profile's name.

tokens
[NonFungibleToken!]

Arguments

NameDescription
limit
Int

Cursors

Fields

NameDescription
after
String

Returns the elements in the list that come after the specified cursor.

before
String

Returns the elements in the list that come before the specified cursor.

Erc20Balance

Fields

NameDescription
amount
Wei!
owner
Address!
contract
Contract!

Erc20Contract

Implements

Fields

NameDescription
address
HexAddress!
name
String
symbol
String
decimals
Int

Erc20Transfer

A transfer of an ERC20 token from one address to another, as defined in EIP20.

Implements

Fields

NameDescription
transactionHash
String!

Hash signature of the transaction in which this transfer did occur

logIndex
Int!

Position of the log within a block in which this transfer was logged

blockNumber
Int!

Block Number in which this transaction was included

contractAddress
HexAddress!

Address containing this token's contract code

contract
Contract
from
Address!

Address sending this token, when this contains the "null address" this token was minted during this transfer

to
Address

Address receiving this token, when this contains the "null address" this token was burned during this transfer

transaction
Transaction!

Transaction in which this transfer occurred

value
Wei!

The amount of tokens sent in this transfer in WEI

Erc20TransferPage

Fields

NameDescription
erc20Transfers
[Erc20Transfer!]!

List of transfers within this page, use the after cursor to fetch more tokens

cursors
Cursors!

Cursors for use in Pagination

totalCount
Int!

Total amount of items within the given filters. Capped at 10000 for performance reasons.

Erc721Token

Implements

Fields

NameDescription
contract
String!
tokenId
String!
name
String
description
String
externalUrl
String
backgroundColor
String
animationUrl
String
youtubeUrl
String
tokenUri
Json
image
Media
animation
Media
imageStorageType
TokenStorageType
owner
Address
sales
[NonFungibleTokenSale!]
mintPrice
Wei!
mintTransaction
Transaction
attributes
[NonFungibleTokenAttribute!]

Erc721Transfer

A transfer of an ERC721 non fungible token from one token to another, as defined in EIP721.

Implements

Fields

NameDescription
transactionHash
String!

Hash signature of the transaction in which this transfer did occur

logIndex
Int!

Position of the log within a block in which this transfer was logged

isAirdrop
Boolean!

Whether this was a mint initiated by an address that was not the receiver of this transfer

contractAddress
HexAddress!

Address containing this token's contract code

tokenId
String!

Token ID which was transferred

blockNumber
Int!

Block Number in which this transaction was included

blockHash
String

Block hash in which this transaction was included

contract
Address!

Address containing this token's contract code

from
Address!

Address sending this token, when this contains the "null address" this token was minted during this transfer

to
Address

Address receiving this token, when this contains the "null address" this token was burned during this transfer

transaction
Transaction!

Transaction in which this transfer occurred

token
NonFungibleToken!

Metadata for the token which was transferred

sale
NonFungibleTokenSale

Sale log found to be associated with this transfer

Erc721TransferPage

Fields

NameDescription
erc721Transfers
[Erc721Transfer!]!

List of transfers within this page, use the after cursor to fetch more tokens

cursors
Cursors!

Cursors for use in Pagination

totalCount
Int!

Total amount of items within the given filters. Capped at 10000 for performance reasons.

Media

Fields

NameDescription
checksum
String!

An arbitrary checksum for this media, useful for caching

blurhash
String

Blurhash for showing a gradient while images are fetching, uses formatting from https://blurhash.io

url
String

Original file stored on Basement's cdn

smallUrl
String

A small render for this token

thumbnailUrl
String

A thumbnail render for this token

largeUrl
String

A large render for this token

width
Int

Image's width, nil if this media is not an image

height
Int

Image's height, nil if this media is not an image

mimeType
String

Content-Type as returned by the host of this media

NativeTransfer

Implements

Fields

NameDescription
transactionHash
String!

Hash signature of the transaction in which this transfer did occur

transactionIndex
Int!

Index of this transaction within a block

blockNumber
Int!

Block Number in which this transaction was included

logIndex
Int

This field always returns null for native transfers.

from
Address!

Address sending ETH

to
Address!

Address receiving ETH

value
Wei!

The amount of ETH sent in this transfer in WEI

error
String

Returns the error returned in this trace, null if execution was successful.

errored
Boolean!
traceAddress
[Int]!

Position of this trace in the full tree of subtraces

input
String

Complete calldata sent with this subcall

methodId
String

First 4 bytes of the input, which refer to the function signature in the contract

type
NativeTransferType!

Type of event in which this eth was transferred

transaction
Transaction!

Transaction in which this transfer occurred

NativeTransferPage

Fields

NameDescription
nativeTransfers
[NativeTransfer!]!

List of transfers within this page, use the after cursor to fetch more tokens

cursors
Cursors!

Cursors for use in Pagination

totalCount
Int!

Total amount of items within the given filters. Capped at 10000 for performance reasons.

NonFungibleTokenAttribute

Fields

NameDescription
traitType
String
value
String
displayType
String

NonFungibleTokenSale

Index of the log in a transaction signaling the sale. Such as OrdersMatched or OrderFulfilled.

Implements

Fields

NameDescription
transactionHash
String!

Hash signature of the transaction in which this sale occurred

logIndex
Int!

Index of the log in a transaction signaling the sale. Such as OrdersMatched or OrderFulfilled.

eventIndex
Int!

In the case of a batch sale, there are multiple sales in one log, this value returns the index within a given log.

transaction
Transaction!
price
Wei!

Price in wei, always check currency_contract to check whether this price is in the native currency of the chain or an erc20 equivalent

currencyContract
Address

Currency used for this sale. When null this is the native currency

maker
Address!

Maker of this sale as defined by the implementing marketplace contract

taker
Address!

Taker of this sale as defined by the implementing marketplace contract

marketplaceContract
Address!

Marketplace contract used for this sale

marketplace
Marketplace!

Marketplace in which this sale occurred

tokenMetadata
NonFungibleToken

Metadata for the token which was transferred due to this sale

Profile

Fields

NameDescription
name
String!
avatar
String

Avatar text record, as returned by the ENS resolver.

email
String

Email text record, as returned by the ENS resolver.

text
String

Returns any text record stored in ENS with the given key.

Arguments

NameDescription
key
String!

Key to return a text record for. For common keys, see: https://docs.ens.domains/ens-improvement-proposals/ensip-5-text-records#global-keys

TokensPage

Fields

NameDescription
tokens
[NonFungibleToken!]!

List of tokens within this page, use the after cursor to fetch more tokens

cursors
Cursors!

Cursors for use in Pagination

totalCount
Int!

Total amount of items within the given filters. Capped at 10000 for performance reasons

Transaction

A transaction executed and stored on the blockchain

Fields

NameDescription
id
ID!

Unique identifier within transactions in Basement. Can be useful for caching in for example Apollo Client.

hash
String!

Signature hash for this transaction

index
Int!

Position of this transaction within a block

blockNumber
Int!

Block Number in which this transaction was included

blockTimestamp
DateTime!

UTC time at which this block was mined

input
String

Complete calldata sent with this transaction

methodId
String

First 4 bytes of the input, which refer to the function signature of the contract

value
Wei!

Number of eth sent with the transaction in wei

gasPrice
Wei!

Gas price with which the transaction was sent by the address in wei

gas
Int!

Maximum amount of gas for which the address allowed the miner to execute

effectiveGasPrice
Wei!

Gas price with which the transaction was executed by the miner in wei

gasUsed
Int!

Gas used after execution by the miner

status
Boolean!

Whether execution on this transaction succeeded

gasPaid
Wei!

Amount of eth paid to execute this transaction, in wei

from
Address!

Address which initiated this transaction

to
Address

Address to which this transaction was sent. This can be another wallet, a contract, or nil in the case of a contract creation.

events
[TransactionEvent!]!

Indexed transaction events. See implementations of TransactionEvent for possible results,

logs
[TransactionLog!]!

Logs emitted while executing this transaction

erc20Transfers
[Erc20Transfer!]!

Erc20 transfers within this transaction

nativeTransfers
[NativeTransfer!]!

Native transfers within this transaction

erc721Transfers
[Erc721Transfer!]!

Native transfers within this transaction

parsedInput
Json

Arguments

NameDescription
abi
String!

TransactionLog

Fields

NameDescription
blockHash
String

Block hash in which this log was included

blockNumber
Int!

Block number in which this log was included

logIndex
Int!

Position of this log within the block

address
Address!

Address of the contract which emitted this log

transactionHash
String!

Hash signature of the transaction during which this log was emitted

topics
[String!]!

List of hex encoded topics, as indexed by this log event

data
String!

Hex encoded data included in the log.

removed
Boolean!

Whether this log was removed during a block reorg

transaction
Transaction!

The transaction during which this log was emitted

parsedData
Json

Arguments

NameDescription
abi
String!

TransactionLogPage

Fields

NameDescription
transactionLogs
[TransactionLog!]!

List of transaction logs within this page, use the after cursor to fetch more tokens

cursors
Cursors!

Cursors for use in Pagination

totalCount
Int!

Total amount of items within the given filters. Capped at 10000 for performance reasons.

TransactionPage

Fields

NameDescription
transactions
[Transaction!]!

List of transactions within this page, use the after cursor to fetch more tokens

cursors
Cursors!

Cursors for use in Pagination

totalCount
Int!

Total amount of items within the given filters. Capped at 10000 for performance reasons.

TransferPage

Fields

NameDescription
transfers
[Transfer!]!

List of transfers within this page, use the after cursor to fetch more tokens

cursors
Cursors!

Cursors for use in Pagination

totalCount
Int!

Total amount of items within the given filters. Capped at 10000 for performance reasons.