Current collected state Current
Observed since 21 Oct, 10:24 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
React hooks for Sequence Web SDK
React hooks to interface with Sequence services.
Wrap your application with the SequenceHooksProvider to provide a config to the hooks.
<SequenceHooksProvider
config={{
projectAccessKey: 'your-project-access-key',
env: {
indexerGatewayUrl: 'your-indexer-gateway-url',
metadataUrl: 'your-metadata-url',
apiUrl: 'your-api-url',
indexerUrl: 'your-indexer-url',
imageProxyUrl: 'your-image-proxy-url',
builderUrl: 'your-builder-api-url'
}
}}
>
<App />
</SequenceHooksProvider>
Sequence hooks are grouped into 5 categories, based on the sequence service they interact with:
import { useGetCoinPrices } from '@0xsequence/hooks'
const { data, isLoading, error } = useGetCoinPrices(
[
{
chainId: 1,
contractAddress: '0x0123456789012345678901234567890123456789'
}
],
{
// options param is optional and default values are below
disabled: false
}
)
import { useGetCollectiblePrices } from '@0xsequence/hooks'
const { data, isLoading, error } = useGetCollectiblePrices(
[
{
chainId: 1,
contractAddress: '0x0123456789012345678901234567890123456789',
tokenId: '1'
}
],
{
// options param is optional and default values are below
disabled: false
}
)
import { useGetExchangeRate } from '@0xsequence/hooks'
const { data, isLoading, error } = useGetExchangeRate('CAD', {
// options param is optional and default values are below
disabled: false
})
import { useGetTransactionHistory } from '@0xsequence/hooks'
const { data, isLoading, fetchNextPage, hasNextPage, isFetchingNextPage, error } = useGetTransactionHistory({
accountAddresses: ['0x0123456789012345678901234567890123456789'],
contractAddresses: ['0x0123456789012345678901234567890123456789'], // optional
tokenId: '1', // optional
chainId: 1, // optional
page: { // optional
pageSize: 10,
},
{
// options param is optional and default values are below
disabled: false,
}
})
import { useGetTransactionHistorySummary } from '@0xsequence/hooks'
const { data, isLoading, error } = useGetTransactionHistorySummary(
{
accountAddresses: ['0x0123456789012345678901234567890123456789'],
chainIds: [1]
},
{
// options param is optional and default values are below
disabled: false
}
)
import { useGetNativeTokenBalance } from '@0xsequence/hooks'
const { data, isLoading, error } = useGetNativeTokenBalance(
{
accountAddress: '0x0123456789012345678901234567890123456789',
chainIds: [1], // either use chainIds or networks name
networks: ['mainnet']
},
{
// options param is optional and default values are below
disabled: false
}
)
import { ContractVerificationStatus } from '@0xsequence/indexer'
import { useGetTokenBalancesSummary } from '@0xsequence/hooks'
const { data, isLoading, fetchNextPage, hasNextPage, isFetchingNextPage, error } = useGetTokenBalancesSummary(
{
chainIds: [1], // either use chainIds or networks name
networks: ['mainnet'],
filter: {
accountAddresses: ['0x0123456789012345678901234567890123456789'],
contractWhitelist: ['0x0123456789012345678901234567890123456789'],
contractBlacklist: ['0x0000000000000000000000000000000000000000'],
contractStatus: ContractVerificationStatus.VERIFIED,
omitNativeBalances: false
},
omitMetadata: false, // optional
page: {
// optional
pageSize: 10
}
},
{
// options param is optional and default values are below
disabled: false
}
)
import { ContractVerificationStatus } from '@0xsequence/indexer'
import { useGetTokenBalancesDetails } from '@0xsequence/hooks'
const { data, isLoading, fetchNextPage, hasNextPage, isFetchingNextPage, error } = useGetTokenBalancesDetails(
{
chainIds: [1], // either use chainIds or networks name
networks: ['mainnet'],
filter: {
accountAddresses: ['0x0123456789012345678901234567890123456789'],
contractWhitelist: ['0x0123456789012345678901234567890123456789'],
contractBlacklist: ['0x0000000000000000000000000000000000000000'],
contractStatus: ContractVerificationStatus.VERIFIED,
omitNativeBalances: false
},
omitMetadata: false, // optional
page: {
// optional
pageSize: 10
}
},
{
// options param is optional and default values are below
disabled: false
}
)
import { ContractVerificationStatus } from '@0xsequence/indexer'
import { useGetTokenBalancesByContract } from '@0xsequence/hooks'
const { data, isLoading, fetchNextPage, hasNextPage, isFetchingNextPage, error } = useGetTokenBalancesByContract(
{
chainIds: [1], // either use chainIds or networks name
networks: ['mainnet'],
filter: {
accountAddresses: ['0x0123456789012345678901234567890123456789'],
contractWhitelist: ['0x0123456789012345678901234567890123456789'],
contractBlacklist: ['0x0000000000000000000000000000000000000000'],
contractStatus: ContractVerificationStatus.VERIFIED,
omitNativeBalances: false
},
omitMetadata: false, // optional
page: {
// optional
pageSize: 10
}
},
{
// options param is optional and default values are below
disabled: false
}
)
import { useGetSingleTokenBalance } from '@0xsequence/hooks'
const { data, isLoading, error } = useGetSingleTokenBalance({
chainId: 1,
accountAddress: '0x9876543210987654321098765432109876543210',
contractAddress: '0x0123456789012345678901234567890123456789'
})
import { useGetContractInfo } from '@0xsequence/hooks'
const { data, isLoading, error } = useGetContractInfo(
{
chainId: 1,
contractAddress: '0x0123456789012345678901234567890123456789'
},
{
// options param is optional and default values are below
disabled: false
}
)
import { useGetMultipleContractInfo } from '@0xsequence/hooks'
const { data, isLoading, error } = useGetMultipleContractInfo(
[
{ chainId: 1, contractAddress: '0x0123456789012345678901234567890123456789' },
{ chainId: 1, contractAddress: '0x0123456789012345678901234567890123456789' }
],
{
// options param is optional and default values are below
disabled: false
}
)
import { useGetTokenMetadata } from '@0xsequence/hooks'
const { data, isLoading, error } = useGetTokenMetadata(
{
chainId: '1',
contractAddress: '0x0123456789012345678901234567890123456789',
tokenIds: ['1']
},
{
// options param is optional and default values are below
disabled: false
}
)
import { useGetSwapQuote } from '@0xsequence/hooks'
const { data, isLoading, error } = useGetSwapQuote({
userAddress: '0x9876543210987654321098765432109876543210',
buyCurrencyAddress: '0x0123456789012345678901234567890123456789',
sellCurrencyAddress: '0x0123456789012345678901234567890123456789',
buyAmount: '1',
chainId: 1,
includeApprove: true,
slippagePercentage: 5 // optional
})
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 5.4.12Registry latest | 13 Jul 2026 | 15 | |
| 6.0.9 | 13 Jul 2026 | 16 | |
| 6.0.8 | 30 Jun 2026 | 16 | |
| 6.0.7 | 24 Jun 2026 | 16 | |
| 6.0.6 | 14 May 2026 | 16 | |
| 5.4.11 | 9 Apr 2026 | 15 | |
| 6.0.5 | 9 Apr 2026 | 16 | |
| 6.0.4 | 8 Apr 2026 | 16 | |
| 5.4.10 | 30 Mar 2026 | 15 | |
| 6.0.3 | 30 Mar 2026 | 16 | |
| 6.0.2 | 13 Mar 2026 | 16 | |
| 5.4.9 | 13 Mar 2026 | 17 | |
| 0.0.0-20260311175940 | 11 Mar 2026 | 17 | |
| 6.0.1 | 10 Mar 2026 | 16 | |
| 6.0.0 | 4 Mar 2026 | 17 | |
| 6.0.0-beta.4 | 13 Feb 2026 | 17 | |
| 6.0.0-beta.3 | 12 Feb 2026 | 17 | |
| 6.0.0-beta.2 | 12 Feb 2026 | 17 | |
| 0.0.0-20260210215314 | 10 Feb 2026 | 17 | |
| 6.0.0-beta.1 | 2 Feb 2026 | 17 |
This describes our collected data; it is not a security assessment.
Observed since 21 Oct, 10:24 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:0db074f591a3e0fba95bd8460690bd5375724a3df53f25598f09588fb20d436d