Skip to main content

Believe Protocol API

In this document, we will explore several examples related to Believe Protocol Data. The Believe Protocol is a decentralized token launchpad built on the Solana blockchain, designed to simplify and democratize the creation and trading of tokens. It enables users to mint tokens directly through social media interactions, particularly on X (formerly Twitter), making it accessible even to those without technical expertise. Tokens are launched on Meteora DBC.

We also have Meteora Dynamic Bonding Curve API Docs. Additionally, you can also check out our Moonshot APIs, FourMeme APIs. These APIs can be provided through different streams including Kafka for zero latency requirements. Please contact us on telegram.

note

Trade Side Account field will not be available for aggregate queries in Archive and Combined Datasets

If you want fastest data without any latency, we can provide Kafka streams, please fill this form for it. Our Team will reach out.

Track Token creation using Believe Protocol on Meteora DBC in realtime

Using this query, we can get the 10 latest created Meteora DBC tokens using Believe Protocol. dbcij3LWUppWqq96dh6gJWwBifmcGfLSB5D4DuSMaqN is the address of Meteora DBC and 5qWya6UjwWnGVhdSBL3hyZ7B45jbk6Byt1hwd7ohEGXE is the Believe Token Authority address, the address which is responsible for calling the instructions on Meteora DBC Program.

subscription MyQuery {
Solana {
Instructions(
where: {
Instruction: {
Program: {
Address: { is: "dbcij3LWUppWqq96dh6gJWwBifmcGfLSB5D4DuSMaqN" }
Method: { is: "initialize_virtual_pool_with_spl_token" }
}
}
Transaction: {
Result: { Success: true }
Signer: { is: "5qWya6UjwWnGVhdSBL3hyZ7B45jbk6Byt1hwd7ohEGXE" }
}
}
) {
Block {
Time
}
Instruction {
Accounts {
Token {
ProgramId
Owner
Mint
}
IsWritable
Address
}
Program {
Parsed
Name
Method
Arguments {
Value {
... on Solana_ABI_Json_Value_Arg {
json
}
... on Solana_ABI_Float_Value_Arg {
float
}
... on Solana_ABI_Boolean_Value_Arg {
bool
}
... on Solana_ABI_Bytes_Value_Arg {
hex
}
... on Solana_ABI_BigInt_Value_Arg {
bigInteger
}
... on Solana_ABI_Address_Value_Arg {
address
}
... on Solana_ABI_String_Value_Arg {
string
}
... on Solana_ABI_Integer_Value_Arg {
integer
}
}
Type
Name
}
Address
AccountNames
}
}
Transaction {
Fee
FeeInUSD
FeePayer
Signature
}
}
}
}

Get the Believe tokens which are graduated to Meteora

For checking which Believe tokens graduated, we need to get all the tokens created by Believe on Meteora DBC using this API and then after getting all the token addresses put them in this query to check which of them graduated to Meteora.

query MyQuery {
Solana {
Instructions(
where: {
Instruction: {
Program: {
Address: { is: "dbcij3LWUppWqq96dh6gJWwBifmcGfLSB5D4DuSMaqN" }
Method: { is: "initialize_virtual_pool_with_spl_token" }
}
}
Transaction: {
Result: { Success: true }
Signer: { is: "5qWya6UjwWnGVhdSBL3hyZ7B45jbk6Byt1hwd7ohEGXE" }
}
}
limit: { count: 10 }
orderBy: { descending: Block_Time }
) {
Block {
Time
}
Instruction {
Accounts {
Token {
ProgramId
Owner
Mint
}
IsWritable
Address
}
Program {
Parsed
Name
Method
Arguments {
Value {
... on Solana_ABI_Json_Value_Arg {
json
}
... on Solana_ABI_Float_Value_Arg {
float
}
... on Solana_ABI_Boolean_Value_Arg {
bool
}
... on Solana_ABI_Bytes_Value_Arg {
hex
}
... on Solana_ABI_BigInt_Value_Arg {
bigInteger
}
... on Solana_ABI_Address_Value_Arg {
address
}
... on Solana_ABI_String_Value_Arg {
string
}
... on Solana_ABI_Integer_Value_Arg {
integer
}
}
Type
Name
}
Address
AccountNames
}
}
Transaction {
Fee
FeeInUSD
FeePayer
Signature
}
}
}
}

then put all the token addresses in the $tokenAddresses variable you get in the following query which you can test here.

query MyQuery($tokenAddresses: [String!]) {
Solana {
Instructions(
where: {Instruction: {Program: {Address: {is: "dbcij3LWUppWqq96dh6gJWwBifmcGfLSB5D4DuSMaqN"}, Method: {in: ["migrate_meteora_damm", "migration_damm_v2"]}}, Accounts: {includes: {Address: {in: $tokenAddresses}}}}, Transaction: {Result: {Success: true}}}
) {
Block {
Time
}
Instruction {
Accounts {
Token {
ProgramId
Owner
Mint
}
IsWritable
Address
}
Program {
Parsed
Name
Method
Arguments {
Value {
... on Solana_ABI_Json_Value_Arg {
json
}
... on Solana_ABI_Float_Value_Arg {
float
}
... on Solana_ABI_Boolean_Value_Arg {
bool
}
... on Solana_ABI_Bytes_Value_Arg {
hex
}
... on Solana_ABI_BigInt_Value_Arg {
bigInteger
}
... on Solana_ABI_Address_Value_Arg {
address
}
... on Solana_ABI_String_Value_Arg {
string
}
... on Solana_ABI_Integer_Value_Arg {
integer
}
}
Type
Name
}
Address
AccountNames
}
}
Transaction {
Fee
FeeInUSD
FeePayer
Signature
}
}
}
}
{
"tokenAddresses":["3EX4yHYs25RXaNMBgaNtpGxPKvX73P9QWVw8fpNEhnow","2bzXpTCu3faGocjBKZvxv63yV3gnWDZYfH6mRVfGzbh8","Dpz6knqUSTfV2ESXqQvbiWVznzRPYSYivUtXT3TVpWkA"]
}

Get latest Meteora DBC Token Creations using Believe Protocol

Using this query, we can get the 10 latest created Meteora DBC tokens using Believe Protocol.

query MyQuery {
Solana {
Instructions(
where: {
Instruction: {
Program: {
Address: { is: "dbcij3LWUppWqq96dh6gJWwBifmcGfLSB5D4DuSMaqN" }
Method: { is: "initialize_virtual_pool_with_spl_token" }
}
}
Transaction: {
Result: { Success: true }
Signer: { is: "5qWya6UjwWnGVhdSBL3hyZ7B45jbk6Byt1hwd7ohEGXE" }
}
}
limit: { count: 10 }
orderBy: { descending: Block_Time }
) {
Block {
Time
}
Instruction {
Accounts {
Token {
ProgramId
Owner
Mint
}
IsWritable
Address
}
Program {
Parsed
Name
Method
Arguments {
Value {
... on Solana_ABI_Json_Value_Arg {
json
}
... on Solana_ABI_Float_Value_Arg {
float
}
... on Solana_ABI_Boolean_Value_Arg {
bool
}
... on Solana_ABI_Bytes_Value_Arg {
hex
}
... on Solana_ABI_BigInt_Value_Arg {
bigInteger
}
... on Solana_ABI_Address_Value_Arg {
address
}
... on Solana_ABI_String_Value_Arg {
string
}
... on Solana_ABI_Integer_Value_Arg {
integer
}
}
Type
Name
}
Address
AccountNames
}
}
Transaction {
Fee
FeeInUSD
FeePayer
Signature
}
}
}
}

Get latest Claims of Creator Fees using Believe Protocol

Using this query, we can get the latest claims of Creator Trading Fees using Believe Protocol.

query MyQuery {
Solana {
Instructions(
where: {
Instruction: {
Program: {
Address: { is: "dbcij3LWUppWqq96dh6gJWwBifmcGfLSB5D4DuSMaqN" }
Method: { is: "claim_creator_trading_fee" }
}
}
Transaction: {
Result: { Success: true }
Signer: { is: "5qWya6UjwWnGVhdSBL3hyZ7B45jbk6Byt1hwd7ohEGXE" }
}
}
limit: { count: 10 }
orderBy: { descending: Block_Time }
) {
Block {
Time
}
Instruction {
Accounts {
Token {
ProgramId
Owner
Mint
}
IsWritable
Address
}
Program {
Parsed
Name
Method
Arguments {
Value {
... on Solana_ABI_Json_Value_Arg {
json
}
... on Solana_ABI_Float_Value_Arg {
float
}
... on Solana_ABI_Boolean_Value_Arg {
bool
}
... on Solana_ABI_Bytes_Value_Arg {
hex
}
... on Solana_ABI_BigInt_Value_Arg {
bigInteger
}
... on Solana_ABI_Address_Value_Arg {
address
}
... on Solana_ABI_String_Value_Arg {
string
}
... on Solana_ABI_Integer_Value_Arg {
integer
}
}
Type
Name
}
Address
AccountNames
}
}
Transaction {
Fee
FeeInUSD
FeePayer
Signature
}
}
}
}