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
Name | Type | Description |
---|---|---|
ein | String | The EIN of the NPO that the deposit address is reserved for |
used | Bool | Whether this deposit address was already used |
asset | String | The deposit address for the donation |
network | String | The 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(())
#}