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 |
|---|---|---|---|
| 6.0.0-beta.0 | 15 Jan 2026 | 17 | |
| 5.4.8 | 4 Dec 2025 | 17 | |
| 5.4.7 | 4 Dec 2025 | 17 | |
| 5.4.6 | 3 Dec 2025 | 17 | |
| 5.4.5 | 3 Dec 2025 | 17 | |
| 0.0.0-20251202170137 | 2 Dec 2025 | 17 | |
| 5.4.4 | 2 Dec 2025 | 17 | |
| 5.4.3 | 28 Nov 2025 | 17 | |
| 5.4.2 | 28 Nov 2025 | 17 | |
| 0.0.0-20251127150140 | 27 Nov 2025 | 17 | |
| 0.0.0-20251127100747 | 27 Nov 2025 | 17 | |
| 0.0.0-20251120113955 | 20 Nov 2025 | 17 | |
| 5.4.1 | 11 Nov 2025 | 17 | |
| 5.4.0 | 11 Nov 2025 | 17 | |
| 5.3.29 | 6 Nov 2025 | 17 | |
| 5.3.28 | 4 Nov 2025 | 17 | |
| 5.3.27 | 28 Oct 2025 | 17 | |
| 5.3.26 | 23 Oct 2025 | 17 | |
| 5.3.25 | 22 Oct 2025 | 17 | |
| 5.3.24 | 22 Oct 2025 | 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