Real-Time collision information from Rigidbody2d,How to get real time collision information using a rigidbody2d?

I am making a game that requires me to do reverse-trigger sensing, I want my rigidBody2D
to get all the collision points, look for a trigger, and call a function on command.

I am relatively new to Unity and C#, And all the answers are a little too complicated for me.

Here is a snippet of the code for now:

public BoxCollider2D colli;
void Update()
if (Input.GetKeyDown(KeyCode.Space))
     Collision2D colliders = colli.contacts;
     foreach(ContactPoint2D sel in colliders)

And here is the error it is generating:

error CS1061: 'Rigidbody2D' does not contain a definition for 'contacts' and no accessible extension method for 'contacts' accepting a first argument of type 'Rigidbody2D' could be found (are you missing a using directive or an assembly reference?)

Of course, this is an easily diagnosable error, but I want a live feed of contacts, like
in the ‘info’ → ‘contacts’ tab, where you get a live feed of contact points and tags,
normals, names, and velocity.

Thank you.