getTransactionByDate()

Get transactions processed during a range of dates by a specific address

Method Signature

public function getTransactionByDate($blockchain, $address, $startDate, $endDate) 

Parameters

Name
Type
Description

blockchain

string

Blockchain address in hex

address

string

Wallet address in hex

startDate

string

Date string in "YYYY:MM:DD-HH:mm:ss" format

endDate

string

Date string in "YYYY:MM:DD-HH:mm:ss" format

Example

<?php
require 'vendor/autoload.php';
use CircularProtocol\Api\CircularProtocolAPI;

$circular = new CircularProtocolAPI();
$blockchain = "0x8a20baa40c45dc5055aeb26197c203e576ef389d9acb171bd62da11dc5ad72b2";
$address = "0x8b1dd25076c04c5139acba458f86c69cd2d322c61d19bc28daa3bbd945083738";
$startDate = "2024:02:06-22:32:00";
$endDate = "2024:05:23-19:34:56";

$result = $circular->getTransactionByDate($blockchain, $address, $startDate, $endDate);
echo $result;

Result

The result will be of type Array, but for easier readability, here is the equivalent in JSON.

If no transaction is found:

Last updated