Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Verify

This endpoint is used to verify whether an address individual address belongs to an NPO we support and its usage status.

Endpoint

GET https://api.givepact.io/v1/verify?address=${DEPOSIT_ADDRESS}

Where deposit_address is the deposit address you are interested in verifying.

Responses

200
NameTypeDescription
einStringThe EIN of the NPO that the deposit address is reserved for
usedBoolWhether this deposit address was already used
assetStringThe deposit address for the donation
networkStringThe network that the deposit address is located on
500

Plaintext response with error message

Examples

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
    let res = reqwest::Client::new()
        .get("https://api.givepact.io/v1/verify?address=0x0000000000000000000000000000000000000000")
        .send() 
        .await?
        .text()
        .await?;

    println!("{res}");

    Ok(())
}