Referral Account Creation Webhook Payload
Please note that this method is only available for paid subscribers on the Navigator plan of Metis - Jupiter V6 Swap API.
Parameters
event_type
string
REQUIRED
The type of event we have detected. Must be `create_referral_account` for this webhook.
body
object
REQUIRED
The details for this event
tx
string
REQUIRED
The transaction as an unsigned encoded string.
tx_type
string
REQUIRED
The type of transaction we are sending you. Must be one of `versioned_transaction` or `transaction`.
symbol
string
REQUIRED
The symbol of the token you should be creating a referral account for.
token_mint_address
string
REQUIRED
The token address of the token you should be creating a referral account for.
referral_account_pubkey
string
REQUIRED
The pubkey of the referral account you'll be adding this token to.
referral_account_token_pubkey
string
REQUIRED
The pubkey of the referral token account thats to be created with this transaction.
context_slot
integer
REQUIRED
The context slot at which this unsigned transaction was generated.
wallet_pubkey
string
REQUIRED
The wallet pubkey we used to generate the unsigned transaction here.
Returns
This method returns nothing
Request
1{2"event_type": "create_referral_account",3"body": {4"tx": "02c05c1500030417010000000000e517cb977ae3ad2a01000000076400014461df0c0000000003b3313008490000320000094461df0c000000000000000000000000A0Rh3wwAAAAAAAAAAAAAAAABAAAAAAAAAOR6TysAAAAA35fG5R6HSQWFUhNk7gAAAA7SiLHjSAAA",5"tx_type": 'transaction',6"symbol": "WSOL",7"token_mint_address": "So11111111111111111111111111111111111111112",8"referral_account_pubkey": "32n4yrhLrXdR8Eo7XqkEkENMa1BHJ3ZkDV9xN8HQXh4v",9"referral_account_token_pubkey": "55k7VkBmqtDBqxDdB28AwzdVNFiLaAePYRfSVsZbmdH2",10"context_slot": 277929733,11"wallet_pubkey": "CL4KcMhPpEeNmR7rK7RHsLSTqshoYpasSxHHhduamfe6"12}13}
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free