Accounts API Examples
Show the most recent 10 6551 accounts on ethereum and polygon
query MyQuery {
ethereumAccounts: Accounts(
input: {filter: {standard: {_eq: ERC6551}}, blockchain: ethereum, order: {createdAtBlockTimestamp: DESC}, limit: 10}
) {
Account {
id
standard
blockchain
tokenAddress
tokenId
address {
identity
}
registry
implementation
salt
createdAtBlockNumber
createdAtBlockTimestamp
creationTransactionHash
deployer
}
}
polygonAccounts: Accounts(
input: {filter: {standard: {_eq: ERC6551}}, blockchain: polygon, order: {createdAtBlockTimestamp: DESC}, limit: 10}
) {
Account {
id
standard
blockchain
tokenAddress
tokenId
address {
identity
}
registry
implementation
salt
createdAtBlockNumber
createdAtBlockTimestamp
creationTransactionHash
deployer
}
}
}
Show me all @Sapienz ERC6551 accounts and their balances
query MyQuery {
Accounts(
input: {filter: {tokenAddress: {_eq: "0x26727ed4f5ba61d3772d1575bca011ae3aef5d36"}, standard: {_eq: ERC6551}}, blockchain: ethereum, limit: 50}
) {
Account {
address {
addresses
tokenBalances {
formattedAmount
tokenAddress
token {
name
}
}
}
salt
tokenAddress
tokenId
createdAtBlockTimestamp
createdAtBlockNumber
}
}
}
Show all ERC65111 accounts owned by @BoredApeYachtClub and the token balances
query MyQuery {
Accounts(
input: {filter: {standard: {_eq: ERC6551}, tokenAddress: {_eq: "0xBC4CA0EdA7647A8aB7C2061c2E118A18a936f13D"}}, blockchain: ethereum, limit: 50}
) {
Account {
address {
addresses
}
tokenAddress
tokenId
address {
tokenBalances {
tokenAddress
amount
token {
name
}
}
}
}
}
}
Show sapienz_0.lens ERC6551 accounts
query MyQuery {
Accounts(
input: {filter: {address: {_eq: "sapienz_0.lens"}}, blockchain: ethereum, limit: 50}
) {
Account {
address {
addresses
primaryDomain {
name
}
}
salt
tokenAddress
tokenId
createdAtBlockTimestamp
createdAtBlockNumber
}
}
}
Show me 6551 accounts created on July 12, 2023 on Ethereum
query MyQuery {
Accounts(
input: {
filter: {
standard: {_eq: ERC6551},
createdAtBlockTimestamp: {_gte: "2023-07-12T00:00:00Z", _lt: "2023-07-13T00:00:00Z"}
},
blockchain: ethereum,
limit: 50
}
) {
Account {
id
standard
blockchain
tokenAddress
tokenId
address {
identity
}
registry
implementation
salt
createdAtBlockNumber
createdAtBlockTimestamp
creationTransactionHash
deployer
}
}
}
Last updated